From dfa255ae7f2dab4fb3d84c67a0452c5b32455877 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 29 Mar 2019 00:05:47 +0530 Subject: tests: add statedump to playground It helps in increased code coverage of playground. updates: bz#1693692 Change-Id: I81bcf30be1450948a6360d8915f06b973387a560 Signed-off-by: Amar Tumballi --- tests/basic/playground/template-xlator-sanity.t | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit