summaryrefslogtreecommitdiffstats
path: root/tests/basic
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2019-06-01 22:43:03 +0530
committerAmar Tumballi <amarts@redhat.com>2019-06-04 09:52:59 +0000
commitabc4d4cfa01d922c46ebb1abfa5d801ba8c6b5c8 (patch)
tree739df47be890d005c19ede751b08110d9824441c /tests/basic
parent400b66d568ad18fefcb59949d1f8368d487b9a80 (diff)
lcov: run more fops on translators
Translators covered: * playground/template * debug/delay-gen * debug/error-gen * features/namespace * features/quiesce * meta updates: bz#1693692 Change-Id: Ic8fde8efcb309ea492d8e819241f786f7ff467a1 Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'tests/basic')
-rwxr-xr-xtests/basic/playground/template-xlator-sanity.t14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/basic/playground/template-xlator-sanity.t b/tests/basic/playground/template-xlator-sanity.t
index a89a38c51c6..1c665502bfe 100755
--- a/tests/basic/playground/template-xlator-sanity.t
+++ b/tests/basic/playground/template-xlator-sanity.t
@@ -15,6 +15,7 @@ end-volume
volume template
type playground/template
subvolumes posix
+ option dummy 13
end-volume
EOF
@@ -24,8 +25,19 @@ 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
+# For monitor output
+kill -USR2 $pid
+
+# Handle SIGHUP and reconfigure
+sed -i -e '/s/dummy 13/dummy 42/g' $B0/template.vol
+kill -HUP $pid
+
+# for calling 'fini()'
+kill -TERM $pid
+
+force_umount $M0
cleanup;