]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: fold ts_skip_subtest into ts_skip
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 19 May 2026 20:46:01 +0000 (22:46 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 20 May 2026 07:55:17 +0000 (09:55 +0200)
The differences between ts_skip_subtest and ts_skip are miniminal.
Make ts_skip usable from subtest context and remove the now unnecessary
ts_skip_subtest.

This allows subtests to make use of all of the convenient helpers built
around ts_skip.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
26 files changed:
tests/functions.sh
tests/ts/chrt/chrt
tests/ts/chrt/chrt-non-root
tests/ts/findmnt/outputs
tests/ts/getino/getino
tests/ts/libmount/loop
tests/ts/libmount/tabfiles
tests/ts/libmount/utils
tests/ts/losetup/losetup-loop
tests/ts/lsclocks/lsclocks
tests/ts/lsfd/column-ainodeclass
tests/ts/lsfd/column-name
tests/ts/lsfd/column-type
tests/ts/lsfd/column-xmode
tests/ts/lsfd/lsfd-functions.bash
tests/ts/lsfd/mkfds-cdev-tun
tests/ts/lsfd/mkfds-multiplexing
tests/ts/lsfd/mkfds-socketpair
tests/ts/lsfd/mkfds-unix-dgram
tests/ts/lsfd/mkfds-unix-in-netns
tests/ts/misc/canonicalize
tests/ts/misc/mbsencode
tests/ts/mount/special
tests/ts/runuser/options
tests/ts/su/group
tests/ts/unshare/env

index 2585d78216f47561ee208da7f57d5f4667bbdf0d..f28e18c7db403146570b233da0c186e0d4de790a 100644 (file)
@@ -153,8 +153,12 @@ function ts_report_skip {
 function ts_skip {
        ts_report_skip "$1"
 
-       ts_cleanup_on_exit
-       exit 0
+       if [ -n "$TS_SUBNAME" ]; then
+               TS_SUBSKIPPED="yes"
+       else
+               ts_cleanup_on_exit
+               exit 0
+       fi
 }
 
 function ts_skip_nonroot {
@@ -663,11 +667,6 @@ function ts_finalize_subtest {
        return $res
 }
 
-function ts_skip_subtest {
-       TS_SUBSKIPPED="yes"
-       ts_report_skip "$1"
-}
-
 # Specify the kernel version X.Y.Z you wish to compare against like:
 #
 #      ts_kernel_ver_lt X Y Z
index 7a195e35d1f1cc2981f3e6cfdb5482df2a8b0dc3..002440109761497d28839bcadb7e0982878e780b 100755 (executable)
@@ -31,7 +31,7 @@ function do_chrt {
 function skip_policy {
        $TS_CMD_CHRT --max | grep $1 | grep 'priority' &> /dev/null
        if [ $? == 1 ]; then
-               ts_skip_subtest "unsupported"
+               ts_skip "unsupported"
                ts_finalize_subtest
                return 1
        fi
@@ -40,7 +40,7 @@ function skip_policy {
 
 function skip_kernel_lt {
        if ts_kernel_ver_lt $1 $2 $3; then
-               ts_skip_subtest "kernel version must be >= $1.$2.$3"
+               ts_skip "kernel version must be >= $1.$2.$3"
                ts_finalize_subtest
                return 1
        fi
@@ -51,7 +51,7 @@ function skip_kernel_lt {
 function skip_kernel_ge {
        ts_kernel_ver_lt $1 $2 $3
        if [ $? == 1 ]; then
-               ts_skip_subtest "kernel version must be < $1.$2.$3"
+               ts_skip "kernel version must be < $1.$2.$3"
                ts_finalize_subtest
                return 1
        fi
index e0a17765f92b54121b0f412c444ced7be8f9dcf0..261b3cbd970ae7254dd0a56f17ba12eefefb95ec 100755 (executable)
@@ -31,7 +31,7 @@ function do_chrt {
 function skip_policy {
        $TS_CMD_CHRT --max | grep $1 | grep 'priority' &> /dev/null
        if [ $? == 1 ]; then
-               ts_skip_subtest "unsupported"
+               ts_skip "unsupported"
                ts_finalize_subtest
                return 1
        fi
index 2d1e7b8ce4dfdc184643691191ed22ae0845447d..a00e122ad56ced67a51f85fcf0fac61217d5267c 100755 (executable)
@@ -119,7 +119,7 @@ ts_init_subtest "canonicalization"
 TEST_LINK="$TS_OUTDIR/fakelink"
 
 if ! ln -s / "$TEST_LINK"; then
-    ts_skip_subtest "failed to create symbolic link to root filesystem"
+    ts_skip "failed to create symbolic link to root filesystem"
 else
     # This return the right mount target
     $TS_CMD_FINDMNT --output TARGET --canonicalize "$TEST_LINK" >>"$TS_OUTPUT" 2>>"$TS_ERRLOG"
index 747b50b55037578dbf97f3e78c6323292046ceaa..61d138a2fe50efb83c97d926b3b1b9c66d7ead4e 100755 (executable)
@@ -80,7 +80,7 @@ function do_ns_check() {
       ts_failed_subtest "${ns_name} namespace unchanged (NS ID: $ts_ns_ino)"
     fi
   else
-    ts_skip_subtest "no ${ns_name} namespace support"
+    ts_skip "no ${ns_name} namespace support"
   fi
 }
 
@@ -123,12 +123,12 @@ if [ -r /proc/self/ns/user ]; then
                         bash -c "$TS_CMD_GETINO --userns \$\$" 2>>"$TS_ERRLOG")
 
   if grep "$("$TS_HELPER_STRERROR" EACCES)" "$TS_ERRLOG" &>/dev/null; then
-    ts_skip_subtest "missing permissions to obtain user namespace"
+    ts_skip "missing permissions to obtain user namespace"
   else
     (( ts_user_ns == unshare_user_ns )) && ts_failed_subtest "user namespace unchanged"
   fi
 else
-  ts_skip_subtest "no user namespace support"
+  ts_skip "no user namespace support"
 fi
 ts_finalize_subtest
 
index 412bea4ef3b0dde4ec1f2e8ae58d9ada3bf99d4a..341a64d791b8868604c759bed45dd458417c90e7 100755 (executable)
@@ -84,7 +84,7 @@ ts_finalize_subtest
 ts_init_subtest "o-loop-val"
 if [ "$TS_PARALLEL" = "yes" ]; then
        # There is a race in $LODEV is usage
-       ts_skip_subtest "no-reentrant"
+       ts_skip "no-reentrant"
 else
        [ -d "$TS_MOUNTPOINT" ] || mkdir -p $TS_MOUNTPOINT
        LODEV=$( $TS_CMD_LOSETUP --find 2>> "$TS_OUTPUT" )
index fa1fe28a92af633fdf2654afb8316cfc2666c873..30d033917f92e46840e4b94b088c04f5378b4c11 100755 (executable)
@@ -83,7 +83,7 @@ sed -i -e 's/fs: 0x.*/fs:/g' "$TS_OUTPUT"
 ts_finalize_subtest
 
 ts_init_subtest "is-mounted-btrfs"
-grep -q '#define HAVE_BTRFS_SUPPORT' ${top_builddir}/config.h || ts_skip_subtest "no btrfs support"
+grep -q '#define HAVE_BTRFS_SUPPORT' ${top_builddir}/config.h || ts_skip "no btrfs support"
 ts_run $TESTPROG --is-mounted "$TS_SELF/files/fstab_btrfs" "$TS_SELF/files/mountinfo_btrfs" &> "$TS_OUTPUT"
 ts_finalize_subtest
 
index 36fae39fbbab6b099704329e584694a4bf0fbf01..c9f99079a1f605c57b1b2baed3d5448702364dff 100755 (executable)
@@ -56,7 +56,7 @@ ts_init_subtest "mountpoint"
 if [ -d /proc ]; then
        ts_run $TESTPROG --mountpoint /proc &> "$TS_OUTPUT"
 else
-       ts_skip_subtest "no /proc"
+       ts_skip "no /proc"
 fi
 ts_finalize_subtest
 
@@ -64,7 +64,7 @@ ts_init_subtest "mountpoint-subdir"
 if [ -d /proc/sys/kernel ]; then
        ts_run $TESTPROG --mountpoint /proc/sys/kernel &> "$TS_OUTPUT"
 else
-       ts_skip_subtest "no /proc"
+       ts_skip "no /proc"
 fi
 ts_finalize_subtest
 
index 8e3d9054f144a3ad34a6f347a395d7f7b04cdea8..9407b5d2d9d55b9a8a0a5e8a95108e2ca63101bc 100755 (executable)
@@ -204,7 +204,7 @@ udevadm settle
 ts_init_subtest "plain-conflict"
 if [ "$TS_PARALLEL" = "yes" ]; then
        # There is a race in $LODEV is usage
-       ts_skip_subtest "no-reentrant"
+       ts_skip "no-reentrant"
 else
        LODEV=$( $TS_CMD_LOSETUP --find --nooverlap --show $BACKFILE )
        if [ -z "$LODEV" ]; then
@@ -225,7 +225,7 @@ udevadm settle
 ts_init_subtest "plain-readonly"
 if [ "$TS_PARALLEL" = "yes" ]; then
        # There is a race in $LODEV is usage
-       ts_skip_subtest "no-reentrant"
+       ts_skip "no-reentrant"
 else
        LODEV=$( $TS_CMD_LOSETUP --find --nooverlap --show --read-only $BACKFILE )
        if [ -z "$LODEV" ]; then
index 6ac5d35610fa6e18bd2f4bc7695bb59ab54d6bf2..59d0c1b041f72a9a514f9505e11aea81f227fec4 100755 (executable)
@@ -48,7 +48,7 @@ if [ -c /dev/ptp0 ] && [ -r /dev/ptp0 ]; then
        "$TS_CMD_LSCLOCKS" $NO_DISCOVER --dynamic-clock /dev/ptp0 --output TYPE,ID,CLOCK,NAME \
                | tail -1 > "$TS_OUTPUT" 2>> "$TS_ERRLOG"
 else
-       ts_skip_subtest "/dev/ptp0 not usable"
+       ts_skip "/dev/ptp0 not usable"
 fi
 ts_finalize_subtest
 
@@ -58,7 +58,7 @@ if [ -c /dev/rtc0 ] && [ -r /dev/rtc0 ]; then
        "$TS_CMD_LSCLOCKS" $NO_DISCOVER --rtc /dev/rtc0 --output TYPE,ID,CLOCK,NAME \
                | tail -1 > "$TS_OUTPUT" 2>> "$TS_ERRLOG"
 else
-       ts_skip_subtest "/dev/rtc0 not usable"
+       ts_skip "/dev/rtc0 not usable"
 fi
 ts_finalize_subtest
 
index e2f71323b5bce9f1d864d165d17c7ccd8da6bc27..66515fa7c6285dda9671f24558749897ba9a9d41 100755 (executable)
@@ -47,14 +47,14 @@ for C in pidfd inotify; do
     } > "$TS_OUTPUT" 2>&1
 
     if [ "$C-$RC" == "pidfd-$TS_EXIT_NOTSUPP" ]; then
-       ts_skip_subtest "pidfd_open(2) is not available"
+       ts_skip "pidfd_open(2) is not available"
        ts_finalize_subtest
        continue
     fi
 
     STTYPE="$(head -n1 "$TS_OUTPUT" | awk '{print $2}')"
     if [ "$C-$STTYPE" == "pidfd-REG" ]; then
-       ts_skip_subtest "pidfd is from pidfs instead of anon inode"
+       ts_skip "pidfd is from pidfs instead of anon inode"
        ts_finalize_subtest
        continue
     fi
index 691895f0e82a2b73646b140114b77e29d0897555..c9112efc94477717857822605e710256176d7f17 100755 (executable)
@@ -69,7 +69,7 @@ for C in ro-regular-file pidfd socketpair; do
     RC=$?
 
     if [ "$C-$RC" == "pidfd-$TS_EXIT_NOTSUPP" ]; then
-       ts_skip_subtest "pidfd_open(2) is not available"
+       ts_skip "pidfd_open(2) is not available"
        ts_finalize_subtest
        continue
     fi
index 225071a674072898d4ca2dcb64439c97a2bd8f95..1ea99066d4e051a882d212882150f3db432afcea 100755 (executable)
@@ -55,7 +55,7 @@ for C in ro-regular-file pidfd inotify socketpair; do
     } > "$TS_OUTPUT" 2>&1
 
     if [ "$C-$RC" == "pidfd-$TS_EXIT_NOTSUPP" ]; then
-       ts_skip_subtest "pidfd_open(2) is not available"
+       ts_skip "pidfd_open(2) is not available"
        ts_finalize_subtest
        continue
     fi
index 41a30f58b1f4d565335e9bad02a9dae134a31a1c..30b694725fa729233df7063264c4f546a842a224 100755 (executable)
@@ -86,9 +86,9 @@ ts_finalize_subtest
 EXPR='(ASSOC == "mem") and (INODE == '"$INO"') and (MODE != "r--") and (MODE != "rw-") and (MODE != "rwx")'
 ts_init_subtest "MODE-x-bit"
 if [ "$QEMU_USER" == "1" ]; then
-    ts_skip_subtest "running under qemu-user emulation"
+    ts_skip "running under qemu-user emulation"
 elif [ "$UID" != "0" ]; then
-    ts_skip_subtest "no root permissions"
+    ts_skip "no root permissions"
 else
     {
        coproc MKFDS { "$TS_HELPER_MKFDS" ro-regular-file $FD; }
@@ -104,9 +104,9 @@ ts_finalize_subtest
 
 ts_init_subtest "XMODE-x-bit"
 if [ "$QEMU_USER" == "1" ]; then
-    ts_skip_subtest "running under qemu-user emulation"
+    ts_skip "running under qemu-user emulation"
 elif [ "$UID" != "0" ]; then
-    ts_skip_subtest "no root permissions"
+    ts_skip "no root permissions"
 else
     {
        coproc MKFDS { "$TS_HELPER_MKFDS" ro-regular-file $FD; }
@@ -150,7 +150,7 @@ for m in flock-sh posix-r- ofd-r-; do
     wait "${MKFDS_PID}"
     RC=$?
     if [ "$RC" == "$TS_EXIT_NOTSUPP" ]; then
-       ts_skip_subtest "$m lock is not available"
+       ts_skip "$m lock is not available"
        ts_finalize_subtest
        continue
     fi
@@ -187,7 +187,7 @@ for m in flock-ex posix--w posix-rw  ofd--w ofd-rw lease-w; do
     wait "${MKFDS_PID}"
     RC=$?
     if [ "$RC" == "$TS_EXIT_NOTSUPP" ]; then
-       ts_skip_subtest "$m lock is not available"
+       ts_skip "$m lock is not available"
        ts_finalize_subtest
        continue
     fi
index dd04cbed544d795e45f40237fab87735d7926643..2b581724188d3a73fd24640fb9e19fc14796f587 100644 (file)
@@ -133,11 +133,11 @@ function lsfd_check_sockdiag
            0)
                return 0;;
            "$EPROTONOSUPPORT")
-               ts_skip$suffix "NETLINK_SOCK_DIAG protocol is not supported in socket(2)";;
+               ts_skip "NETLINK_SOCK_DIAG protocol is not supported in socket(2)";;
            "$EACCES")
-               ts_skip$suffix "sending a msg via a sockdiag netlink socket is not permitted";;
+               ts_skip "sending a msg via a sockdiag netlink socket is not permitted";;
            "$ENOENT")
-               ts_skip$suffix "sockdiag netlink socket is not available";;
+               ts_skip "sockdiag netlink socket is not available";;
            *)
                ts_failed$suffix "failed to create a sockdiag netlink socket $family ($err): $msg";;
        esac
index 8cbb2507ffc07f58a3a5c41a05513390f605d1a3..3e963f8fee0aceb98b9e4cca6c1909bdb3096010 100755 (executable)
@@ -124,7 +124,7 @@ cdev_tun_test()
 
     ts_init_subtest "$tname"-devnetns
     if [[ -z "${devnetns_available}" ]]; then
-       ts_skip_subtest "no method to access devnetns on this platform"
+       ts_skip "no method to access devnetns on this platform"
     else
        {
            output=$(${TS_CMD_LSFD} -p "${PID}" -n --raw -o TUN.DEVNETNS -Q "${EXPR}")
index 7fcd932a910db88b3f27df37f4cc9fc2b248cbdb..aac07bf0bb0b02d8743c3d43de32b355ddd8e4d1 100755 (executable)
@@ -37,7 +37,7 @@ PID=
 for multiplexer in pselect6 select poll ppoll; do
     ts_init_subtest "${multiplexer}"
     if ! "$TS_HELPER_MKFDS" -W | grep -q "^$multiplexer\$"; then
-       ts_skip_subtest "the multiplexer ${multiplexer} is not available"
+       ts_skip "the multiplexer ${multiplexer} is not available"
        ts_finalize_subtest
        continue
     fi
@@ -52,7 +52,7 @@ for multiplexer in pselect6 select poll ppoll; do
        if [[ "$syscall_status" != 0 ]]; then
            kill -CONT "${PID}"
            wait "${MKFDS_PID}"
-           ts_skip_subtest "cannot open /proc/${PID}/syscall"
+           ts_skip "cannot open /proc/${PID}/syscall"
            ts_finalize_subtest
            continue
        fi
@@ -62,7 +62,7 @@ for multiplexer in pselect6 select poll ppoll; do
        if [[ "$syscall_n" == 0 ]]; then
            kill -CONT "${PID}"
            wait "${MKFDS_PID}"
-           ts_skip_subtest "incorrect syscall number in /proc/${PID}/syscall"
+           ts_skip "incorrect syscall number in /proc/${PID}/syscall"
            ts_finalize_subtest
            continue
        fi
index 95f9b02971f4c8c1e9c40a563c9f0dcc8e39e05c..2d43af2e7ee4dabde47b244e269aacbc1ec405f1 100755 (executable)
@@ -70,7 +70,7 @@ mkfds_socketpair_stream_endpoint()
 {
     ts_init_subtest "STREAM-ENDPOINT"
     if [ "$QEMU_USER" == "1" ]; then
-       ts_skip_subtest "running under qemu-user emulation"
+       ts_skip "running under qemu-user emulation"
        ts_finalize_subtest
        return
     fi
@@ -93,7 +93,7 @@ mkfds_socketpair_stream_shutdown_state()
 {
     ts_init_subtest "STREAM-SHUTDOWN-STATE"
     if [ "$QEMU_USER" == "1" ]; then
-       ts_skip_subtest "running under qemu-user emulation"
+       ts_skip "running under qemu-user emulation"
        ts_finalize_subtest
        return
     fi
@@ -116,7 +116,7 @@ mkfds_socketpair_stream_endpoint_halfclose()
 {
     ts_init_subtest "STREAM-ENDPOINT-halfclose"
     if [ "$QEMU_USER" == "1" ]; then
-       ts_skip_subtest "running under qemu-user emulation"
+       ts_skip "running under qemu-user emulation"
        ts_finalize_subtest
        return
     fi
index 6504e82c1a00d819df66505050fdc729d1bcbaac..9f0916e54454522f284739561b233671d273d2b2 100755 (executable)
@@ -75,10 +75,10 @@ ts_finalize_subtest
 
 ts_init_subtest "ENDPOINTS-column"
 if ! lsfd_check_sockdiag --subtest unix; then
-    # lsfd_check_sockdiag calls ts_skip_subtest or ts_failed_subtest.
+    # lsfd_check_sockdiag calls ts_skip or ts_failed_subtest.
     :
 elif ts_is_in_docker; then
-    ts_skip_subtest "unsupported in docker environment"
+    ts_skip "unsupported in docker environment"
 else
     {
        coproc MKFDS { "$TS_HELPER_MKFDS" unix-dgram $FDS $FDC \
@@ -107,10 +107,10 @@ ts_finalize_subtest
 
 ts_init_subtest "UNIX.IPEEER-column"
 if ! lsfd_check_sockdiag --subtest unix; then
-    # lsfd_check_sockdiag calls ts_skip_subtest or ts_failed_subtest.
+    # lsfd_check_sockdiag calls ts_skip or ts_failed_subtest.
     :
 elif ts_is_in_docker; then
-    ts_skip_subtest "unsupported in docker environment"
+    ts_skip "unsupported in docker environment"
 else
     {
        coproc MKFDS { "$TS_HELPER_MKFDS" unix-dgram $FDS $FDC \
index 8f25c5cb656bafeefb85b54f2292f04325ab7b42..54be9646f69e8af0cd7a757bb8e97f9cc821a1d4 100755 (executable)
@@ -102,7 +102,7 @@ for t in stream dgram seqpacket; do
        RC=$?
     } > "$TS_OUTPUT" 2>&1
     if [ "$RC" == "$EPERM" ]; then
-       ts_skip_subtest "unshare(2) is not permitted on this platform"
+       ts_skip "unshare(2) is not permitted on this platform"
        ts_finalize_subtest
        continue
     fi
index c1d62e44168fcd98ab77d459e6ac44972d117fd3..0f935d244a2a67fb21764672561cd40eaa53af81 100755 (executable)
@@ -24,7 +24,7 @@ ts_check_test_command "$TS_CMD_SETPRIV"
 ts_check_test_command "$TS_HELPER_CANONICALIZE"
 
 grep -q 'nodev[[:space:]]*tmpfs' /proc/filesystems || \
-       ts_skip_subtest "tmpfs unsupported"
+       ts_skip "tmpfs unsupported"
 
 mkdir -p $TS_MOUNTPOINT &>  /dev/null
 $TS_CMD_MOUNT -t tmpfs tmpfs $TS_MOUNTPOINT >> "$TS_OUTPUT" 2>> "$TS_ERRLOG" \
@@ -68,7 +68,7 @@ if id $uid &>/dev/null; then
                        -- $TESTPROG ${BASE}/root-sym/foo \
                | sed "s:${BASE}::g" >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
 else
-       ts_skip_subtest "nobody user is missing"
+       ts_skip "nobody user is missing"
 fi
 ts_finalize_subtest
 
index 636401b6c8d6eff15f90472be2bea602f1398aba..bd11f2260a61a9243f0e6cde61b505425ee45324 100755 (executable)
@@ -59,7 +59,7 @@ ts_init_subtest "invalid-ascii"
 if [ "$HAVE_WIDECHAR" = true ]; then
        $TS_HELPER_MBSENCODE --invalid "${STRINGS[@]}" >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
 else
-       ts_skip_subtest 'No widechar support'
+       ts_skip 'No widechar support'
 fi
 ts_finalize_subtest
 
@@ -68,7 +68,7 @@ if [ "$HAVE_WIDECHAR" = true ]; then
        LC_ALL=C.UTF-8 \
        $TS_HELPER_MBSENCODE --safe "${STRINGS[@]}" >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
 else
-       ts_skip_subtest 'No widechar support'
+       ts_skip 'No widechar support'
 fi
 ts_finalize_subtest
 
@@ -77,7 +77,7 @@ if [ "$HAVE_WIDECHAR" = true ]; then
        LC_ALL=C.UTF-8 \
        $TS_HELPER_MBSENCODE --invalid "${STRINGS[@]}" >> "$TS_OUTPUT" 2>> "$TS_ERRLOG"
 else
-       ts_skip_subtest 'No widechar support'
+       ts_skip 'No widechar support'
 fi
 ts_finalize_subtest
 
index a95754b3658f5a19480b67bf8b18875c238bef21..fc210e26dda6d63d96e4d44920f94623efc482c9 100755 (executable)
@@ -88,10 +88,10 @@ EOF
                unset LIBMOUNT_UTAB
                rm -f $MOUNTER
        else
-               ts_skip_subtest "tmpfs not mounted"
+               ts_skip "tmpfs not mounted"
        fi
 else
-       ts_skip_subtest "tmpfs unsupported"
+       ts_skip "tmpfs unsupported"
 fi
 ts_finalize_subtest
 
index fae08c6bd915ae53e74b65c1aab014e522487d5f..36dbf1923af18cf94fc53bb8128a1528b9ec29df 100755 (executable)
@@ -38,7 +38,7 @@ export UL_TEST_VAR=foo
 unset -v UL_TEST_VAR
 
 if grep "$($TS_HELPER_STRERROR ENOTTY)" "$TS_ERRLOG"; then
-    ts_skip_subtest "failed to launch login session: ENOTTY"
+    ts_skip "failed to launch login session: ENOTTY"
 fi
 ts_finalize_subtest
 
@@ -98,7 +98,7 @@ ts_init_subtest "pty"
 ps --version >/dev/null
 
 if ! compare_ptys; then
-    ts_skip_subtest "$errmsg"
+    ts_skip "$errmsg"
     unset -v errmsg
 fi
 ts_finalize_subtest
index a51984c0b56d6e4547a1a14d667eb49efca99a79..897b25184ebbebc406071894569c297cb6cd7188 100755 (executable)
@@ -52,7 +52,7 @@ ts_init_subtest "primary-login"
                         | grep -o "$grp_name" \
                         | uniq >> "$TS_OUTPUT"
 
-grep -q 'Authentication failure' "$TS_ERRLOG" && ts_skip_subtest "authentication failure"
+grep -q 'Authentication failure' "$TS_ERRLOG" && ts_skip "authentication failure"
 ts_finalize_subtest
 
 ts_init_subtest "supplemental-no-login"
@@ -68,7 +68,7 @@ ts_init_subtest "supplemental-login"
                         | grep -o "$grp_name" \
                         | uniq >> "$TS_OUTPUT"
 
-grep -q 'Authentication failure' "$TS_ERRLOG" && ts_skip_subtest "authentication failure"
+grep -q 'Authentication failure' "$TS_ERRLOG" && ts_skip "authentication failure"
 ts_finalize_subtest
 
 ts_init_subtest "group-id"
index 201f4451a8c3cb96225a26cb69f07549cde3c86b..ceec258d24474ee455ae2761fffb532c5e79921b 100755 (executable)
@@ -30,7 +30,7 @@ export UL_TEST_ENV=foo
 unset -v UL_TEST_ENV
 
 if grep -q "$($TS_HELPER_STRERROR EPERM)" "$TS_OUTPUT" "$TS_ERRLOG"; then
-        ts_skip_subtest "missing permissions"
+        ts_skip "missing permissions"
 fi
 ts_finalize_subtest
 
@@ -41,7 +41,7 @@ export UL_TEST_ENV2=bar
 "$TS_CMD_UNSHARE" --whitelist-env UL_TEST_ENV1 /bin/bash -c 'echo "${UL_TEST_ENV1}${UL_TEST_ENV2}"' >>"$TS_OUTPUT" 2>>"$TS_ERRLOG"
 
 if grep -q "$($TS_HELPER_STRERROR EPERM)" "$TS_OUTPUT" "$TS_ERRLOG"; then
-        ts_skip_subtest "missing permissions"
+        ts_skip "missing permissions"
 fi
 ts_finalize_subtest