On 03/11/2026 10:07, Bruno Haible via GNU coreutils General Discussion wrote:
Hi,
Today's CI run reports a "make distcheck" failure on Ubuntu 24.04:
FAIL: tests/sort/sort-compress.sh
Probably caused by commit f30c663c735eb6f26751523b6d7e21c9e4901f73
(yesterday).
I've pushed the following which should address it.
cheers,
Padraig.
commit c5c0e611ef00ddf37b9f6cbdc374385643e7e056 (HEAD -> master)
Author: Pádraig Brady <[email protected]>
Date: Tue Nov 3 13:19:18 2026 +0000
tests: fix false failure with spaces in the path
* tests/sort/sort-compress.sh: Quote the found sort exe.
Reported by Bruno Haible.
diff --git a/tests/sort/sort-compress.sh b/tests/sort/sort-compress.sh
index b7cd9012f..d82a0cd67 100755
--- a/tests/sort/sort-compress.sh
+++ b/tests/sort/sort-compress.sh
@@ -60,7 +60,7 @@ rm -f ok
sort=$(cmd_exe sort) || framework_failure_
env -u PATH gzip </dev/null >/dev/null 2>&1
if test $? -eq 0 && ! test -f ok; then
- env -u PATH $sort -S 1k --compress-program=gzip in >out || fail=1
+ env -u PATH "$sort" -S 1k --compress-program=gzip in >out || fail=1
compare exp out || fail=1
test -f ok && fail=1
fi
@@ -78,7 +78,7 @@ chmod +x abs-gzip || framework_failure_
env PATH= abs-gzip </dev/null >/dev/null 2>&1
if test $? -eq 0 && test -f ok; then
rm -f ok || framework_failure_
- env PATH= $sort -S 1k --compress-program=abs-gzip in >out || fail=1
+ env PATH= "$sort" -S 1k --compress-program=abs-gzip in >out || fail=1
compare exp out || fail=1
test -f ok || fail=1
fi