summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2019-03-29 00:05:47 +0530
committerAmar Tumballi <amarts@redhat.com>2019-04-01 09:02:14 +0000
commitdfa255ae7f2dab4fb3d84c67a0452c5b32455877 (patch)
tree6a7ae5435f68726aec002473fe2e6bfb3237312c /tests
parentbc3694d7cfc868a2ed6344ea123faf19fce28d13 (diff)
tests: add statedump to playground
It helps in increased code coverage of playground. updates: bz#1693692 Change-Id: I81bcf30be1450948a6360d8915f06b973387a560 Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basic/playground/template-xlator-sanity.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basic/playground/template-xlator-sanity.t b/tests/basic/playground/template-xlator-sanity.t
index c3090dae5a8..a89a38c51c6 100755
--- a/tests/basic/playground/template-xlator-sanity.t
+++ b/tests/basic/playground/template-xlator-sanity.t
@@ -22,6 +22,10 @@ TEST glusterfs -f $B0/template.vol $M0
TEST $(dirname $0)/../rpc-coverage.sh --no-locks $M0
+# Take statedump to get maximum code coverage
+pid=$(ps auxww | grep glusterfs | grep -E "template.vol" | awk '{print $2}' | head -1)
+TEST generate_statedump $pid
+
EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0
cleanup;