summaryrefslogtreecommitdiffstats
path: root/tests/bugs
diff options
context:
space:
mode:
authorN Balachandran <nbalacha@redhat.com>2019-02-13 10:20:29 +0530
committerAmar Tumballi <amarts@redhat.com>2019-02-13 14:14:08 +0000
commitf251bf672dc8ce340c58d806a19cbd47e3a72ba9 (patch)
tree056c4794ee86abb10e2f5e310fe8f303ce4f2e15 /tests/bugs
parent73d22d982b965f81a1fde2400b6d432242be0db5 (diff)
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 <nbalacha@redhat.com>
Diffstat (limited to 'tests/bugs')
-rwxr-xr-xtests/bugs/distribute/bug-1161311.t8
1 files changed, 7 insertions, 1 deletions
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;