]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: (tests) skip test if test_enosys is nonfunctional
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 26 Apr 2023 10:15:58 +0000 (12:15 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 26 Apr 2023 10:55:27 +0000 (12:55 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/ts/mount/fallback

index 4f4f2b70c67c608e3a5349a060d8feeedec224dc..fe932ee78a62a4710b120f168951c1db7d536f28 100755 (executable)
@@ -13,6 +13,8 @@ ts_check_test_command "$TS_CMD_FINDMNT"
 ts_check_test_command "$TS_CMD_LOSETUP"
 
 ts_skip_nonroot
+"$TS_HELPER_ENOSYS" true 2> /dev/null
+[ "$?" -eq "$TS_EXIT_NOTSUPP" ] && ts_skip "test_enosys does not work"
 
 test_mount_fallback() {
        ts_init_subtest "$1"