From 186e6321bda694ec75e4e5c904c4e67e71d5aa80 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 12 Nov 2026 01:13:33 -0600 Subject: [PATCH] Fix skip_all and bypass two coreutils regressions. --- scripts/runtest.sh | 3 ++- tests/chown.test | 2 +- tests/mv.test | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/runtest.sh b/scripts/runtest.sh index ffc66c5a..0f9f6792 100644 --- a/scripts/runtest.sh +++ b/scripts/runtest.sh @@ -47,7 +47,8 @@ fi skip_all() { echo "$SHOWSKIP: $CMDNAME ($1)" - exit + touch ../continue + exit 0 } # Check if VERBOSE= contains a given string. (This allows combining.) diff --git a/tests/chown.test b/tests/chown.test index 0ed806fa..ca94e173 100755 --- a/tests/chown.test +++ b/tests/chown.test @@ -2,7 +2,7 @@ [ -f testing.sh ] && . testing.sh -[ $UID -ne 0 ] && SKIP_ALL "not root" +[ $UID -ne 0 ] && skip_all "not root" # We chown between user "root" and the last user in /etc/passwd, # and group "root" and the last group in /etc/group. diff --git a/tests/mv.test b/tests/mv.test index 3731bf6c..155915d8 100755 --- a/tests/mv.test +++ b/tests/mv.test @@ -142,14 +142,15 @@ testing "over unwritable file only prompts when stdin is a terminal" \ "yes\n" "" "" rm -f file* +# These two tests were broken (violating posix) by coreutils commit 7a69df88999b touch file1 file2 -testing "interactive: no stdin" \ +toyonly testing "interactive: no stdin" \ "mv -i file2 file1 2>/dev/null && [ -e file1 -a -e file2 ] && echo yes" \ "yes\n" "" "" rm -f file* touch file1 file2 -testing "interactive: answered YES" \ +toyonly testing "interactive: answered YES" \ "mv -i file2 file1 2>/dev/null && [ -e file1 -a ! -e file2 ] && echo yes" \ "yes\n" "" "y\n" rm -f file* -- 2.39.5