diff mbox series

[33/40] vfstests: some tests require the testdir to be shared

Message ID 20241127045403.3665299-34-david@fromorbit.com (mailing list archive)
State New
Headers show
Series fstests: concurrent test execution | expand

Commit Message

Dave Chinner Nov. 27, 2024, 4:52 a.m. UTC
From: Dave Chinner <dchinner@redhat.com>

This ensures that these tests will run successfully when the
parallel check infrastructure makes all the scratch and test
mounts private.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
 tests/generic/589 | 2 ++
 tests/generic/632 | 2 ++
 2 files changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/tests/generic/589 b/tests/generic/589
index b5860070b..0384083bb 100755
--- a/tests/generic/589
+++ b/tests/generic/589
@@ -164,7 +164,9 @@  move_test()
 	move_run unbindable private
 }
 
+_mount --make-shared $TEST_DIR
 move_test
+_mount --make-private $TEST_DIR
 
 # success, all done
 status=0
diff --git a/tests/generic/632 b/tests/generic/632
index c7a1f1fad..c4d3555bc 100755
--- a/tests/generic/632
+++ b/tests/generic/632
@@ -22,8 +22,10 @@  _begin_fstest auto quick mount
 _require_test
 _require_test_program "detached_mounts_propagation"
 
+_mount --make-shared $TEST_DIR
 $here/src/detached_mounts_propagation $TEST_DIR >> $seqres.full
 status=$?
+_mount --make-private $TEST_DIR
 
 echo silence is golden
 exit