summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basic/tier/bug-1214222-directories_miising_after_attach_tier.t4
-rwxr-xr-xtests/basic/tier/tier.t4
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/basic/tier/bug-1214222-directories_miising_after_attach_tier.t b/tests/basic/tier/bug-1214222-directories_miising_after_attach_tier.t
index 028bc6a47d0..6199463b36d 100755
--- a/tests/basic/tier/bug-1214222-directories_miising_after_attach_tier.t
+++ b/tests/basic/tier/bug-1214222-directories_miising_after_attach_tier.t
@@ -57,6 +57,9 @@ TEST $CLI volume set $V0 features.ctr-enabled on
TEST [ -d d1 ]
TEST [ -e file1 ]
+cd
+EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" force_umount $M0;
+
TEST $CLI volume detach-tier $V0 start
TEST $CLI volume detach-tier $V0 commit
@@ -64,4 +67,5 @@ EXPECT "0" confirm_tier_removed ${V0}${CACHE_BRICK_FIRST}
EXPECT_WITHIN $REBALANCE_TIMEOUT "0" confirm_vol_stopped $V0
+
cleanup
diff --git a/tests/basic/tier/tier.t b/tests/basic/tier/tier.t
index 79e171f85bf..2a5f7486d7f 100755
--- a/tests/basic/tier/tier.t
+++ b/tests/basic/tier/tier.t
@@ -110,7 +110,7 @@ sleep 12
uuidgen >> d1/data2.txt
# Check promotion on read to slow tier
-( cd $M0 ; umount $M0 ) # fail but drops kernel cache
+( cd $M0 ; umount -l $M0 ) # fail but drops kernel cache
cat d1/data3.txt
sleep 5
EXPECT_WITHIN $PROMOTE_TIMEOUT "0" file_on_fast_tier d1/data2.txt
@@ -133,4 +133,6 @@ EXPECT "0" confirm_tier_removed ${V0}${CACHE_BRICK_FIRST}
EXPECT_WITHIN $REBALANCE_TIMEOUT "0" confirm_vol_stopped $V0
+cd;
+
cleanup