diff options
Diffstat (limited to 'tests/basic/playground/template-xlator-sanity.t')
| -rwxr-xr-x | tests/basic/playground/template-xlator-sanity.t | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/basic/playground/template-xlator-sanity.t b/tests/basic/playground/template-xlator-sanity.t index c3090dae5a8..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 @@ -22,6 +23,21 @@ TEST glusterfs -f $B0/template.vol $M0 TEST $(dirname $0)/../rpc-coverage.sh --no-locks $M0 -EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $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 + +# 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; |
