From: Collin Funk Date: Fri, 17 Apr 2026 04:07:26 +0000 (-0700) Subject: tests: Avoid accidental matching of the vendor field of $host, part 2 X-Git-Tag: v9.11~7 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=70293149b5aea287f1728579243fadc67d38bbe7;p=thirdparty%2Fcoreutils.git tests: Avoid accidental matching of the vendor field of $host, part 2 * tests/local.mk (TESTS_ENVIRONMENT): Remove host_triplet. * tests/chgrp/basic.sh: Use $host_os instead of $host_triplet. * tests/misc/io-errors.sh: Likewise. --- diff --git a/tests/chgrp/basic.sh b/tests/chgrp/basic.sh index 1d8715efea..4a1dabe628 100755 --- a/tests/chgrp/basic.sh +++ b/tests/chgrp/basic.sh @@ -102,7 +102,7 @@ test "$(ls -C -c -t f g)" = 'f g' || \ openbsd*) echo ignoring known OpenBSD-specific chgrp failure 1>&2 ;; darwin7.9.*|darwin8.*) echo ignoring known MacOS X-specific chgrp failure 1>&2 ;; - *) echo $host_triplet: no-change chgrp failed to update ctime 1>&2; + *) echo $host_os: no-change chgrp failed to update ctime 1>&2; fail=1 ;; esac } diff --git a/tests/local.mk b/tests/local.mk index 74b77f220e..628e54436d 100644 --- a/tests/local.mk +++ b/tests/local.mk @@ -68,7 +68,6 @@ TESTS_ENVIRONMENT = \ built_programs='$(built_programs) $(single_binary_progs)' \ fail=0 \ host_os=$(host_os) \ - host_triplet='$(host_triplet)' \ srcdir='$(srcdir)' \ top_srcdir='$(top_srcdir)' \ CONFIG_HEADER='$(abs_top_builddir)/$(CONFIG_INCLUDE)' \ diff --git a/tests/misc/io-errors.sh b/tests/misc/io-errors.sh index 72bfeb4584..75f50050f8 100755 --- a/tests/misc/io-errors.sh +++ b/tests/misc/io-errors.sh @@ -88,7 +88,7 @@ while read writer; do # As a result, when we print a single line there is no bytes buffered when # we close the stream and errno is not set. See: # . - case $host_triplet in + case $host_os in *-musl*) error_re="$error_re|" ;; esac