]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: (tests) also skip tests on private,slave propagation
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 30 Apr 2023 18:50:21 +0000 (20:50 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 30 Apr 2023 22:54:23 +0000 (00:54 +0200)
On docker the mount propagation is "private,slave".
Adapt the pattern to handle this.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/ts/mount/subdir

index c099200312ea3696383774f3899bf1b2bae81928..6443d3407367c579512e37d66953df10f08d6e35 100755 (executable)
@@ -27,7 +27,7 @@ ts_skip_nonroot
 ts_check_losetup
 
 prop=$($TS_CMD_FINDMNT --task "$$" -n -o PROPAGATION "/")
-[ "$prop" == "private" ] && ts_skip "unshared session"
+[[ "$prop" == *"private"* ]] && ts_skip "unshared session"
 
 ts_device_init
 DEVICE=$TS_LODEV