From 4abedb29371eb03437a419609baa02d1ab8be5aa Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 28 Apr 2023 11:01:01 +0200 Subject: [PATCH] tests: skip subdir test if unshared session Addresses: https://github.com/util-linux/util-linux/pull/2197 Signed-off-by: Karel Zak --- tests/ts/mount/subdir | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/ts/mount/subdir b/tests/ts/mount/subdir index 04ba6dc1cd..c099200312 100755 --- a/tests/ts/mount/subdir +++ b/tests/ts/mount/subdir @@ -22,9 +22,13 @@ TS_DESC="X-mount.subdir" ts_init "$*" ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_FINDMNT" ts_skip_nonroot ts_check_losetup +prop=$($TS_CMD_FINDMNT --task "$$" -n -o PROPAGATION "/") +[ "$prop" == "private" ] && ts_skip "unshared session" + ts_device_init DEVICE=$TS_LODEV -- 2.47.3