mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-28 12:35:36 +08:00
tests: fix the install/strip-program test
* tests/install/strip-program: Use $PREFERABLY_POSIX_SHELL, not POSIX_SHELL. The latter may be empty, and would fail on OpenBSD 3.9. * tests/check.mk (TESTS_ENVIRONMENT): Propagate PREFERABLY_POSIX_SHELL to tests.
This commit is contained in:
parent
15f4d612df
commit
fbc5aa7c47
@ -87,6 +87,7 @@ TESTS_ENVIRONMENT = \
|
||||
PACKAGE_BUGREPORT='$(PACKAGE_BUGREPORT)' \
|
||||
PACKAGE_VERSION=$(PACKAGE_VERSION) \
|
||||
PERL='$(PERL)' \
|
||||
PREFERABLY_POSIX_SHELL='$(PREFERABLY_POSIX_SHELL)' \
|
||||
REPLACE_GETCWD=$(REPLACE_GETCWD) \
|
||||
PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" \
|
||||
; shell_or_perl_
|
||||
|
@ -26,7 +26,7 @@ fi
|
||||
working_umask_or_skip_
|
||||
|
||||
cat <<EOF > b || framework_failure
|
||||
#!$POSIX_SHELL
|
||||
#!$PREFERABLY_POSIX_SHELL
|
||||
sed s/b/B/ \$1 > \$1.t && mv \$1.t \$1
|
||||
EOF
|
||||
chmod a+x b || framework_failure
|
||||
|
Loading…
Reference in New Issue
Block a user