From f251bf672dc8ce340c58d806a19cbd47e3a72ba9 Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Wed, 13 Feb 2019 10:20:29 +0530 Subject: tests/dht: Stop volume before unmounting bricks The bricks are loopback devices. Unmounting them is done before the cleanup and leads to "target is busy" messages. Change-Id: Ia808c2c9580273e1bf0595ecf53c210847c44577 fixes: bz#1676736 Signed-off-by: N Balachandran --- tests/bugs/distribute/bug-1161311.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/bugs/distribute/bug-1161311.t b/tests/bugs/distribute/bug-1161311.t index c52c69baafa..0fe4fa37b0e 100755 --- a/tests/bugs/distribute/bug-1161311.t +++ b/tests/bugs/distribute/bug-1161311.t @@ -1,5 +1,7 @@ #!/bin/bash +SCRIPT_TIMEOUT=350 + # This tests for hard link preservation for files that are linked, when the # file is undergoing migration @@ -16,7 +18,6 @@ . $(dirname $0)/../../volume.rc cleanup -SCRIPT_TIMEOUT=350 TEST truncate -s 10GB $B0/brick1 TEST truncate -s 10GB $B0/brick2 TEST truncate -s 10GB $B0/brick3 @@ -153,6 +154,11 @@ TEST ln ./dir1/FILE7 ./FILE7 cd / linkcountsrc=$(stat -c %h $M0/dir1/FILE1) TEST [[ $linkcountsrc == 14 ]] + + +# Stop the volume +TEST $CLI volume stop $V0; + UMOUNT_LOOP ${B0}/${V0}{1..3} rm -f ${B0}/brick{1..3} cleanup; -- cgit