tests/docker: avoid $SHELL invoke bash directly
On some images SHELL is pointing at a limited /bin/sh which doesn't
understand noprofile/norc. Given the run script is running bash just
invoke it directly.
This fixes:
$ make docker-test-build@IMAGE DEBUG=1
[...]
+ echo ' ./test-build'
./test-build
+ echo '* Hit Ctrl-D to continue, or type '\''exit 1'\'' to abort'
* Hit Ctrl-D to continue, or type 'exit 1' to abort
+ echo
+ /bin/sh --noprofile --norc
/bin/sh: 0: Illegal option --
Fixes: 2b0c4fa13f
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
44d5a8bf5d
commit
bf5b512cd4
@ -62,7 +62,7 @@ echo "* Prepared to run command:"
|
|||||||
echo " $CMD"
|
echo " $CMD"
|
||||||
echo "* Hit Ctrl-D to continue, or type 'exit 1' to abort"
|
echo "* Hit Ctrl-D to continue, or type 'exit 1' to abort"
|
||||||
echo
|
echo
|
||||||
$SHELL --noprofile --norc
|
env bash --noprofile --norc
|
||||||
|
|
||||||
if "$CMD"; then
|
if "$CMD"; then
|
||||||
exit 0
|
exit 0
|
||||||
@ -72,7 +72,7 @@ elif test -n "$DEBUG"; then
|
|||||||
echo "* Hit Ctrl-D to exit"
|
echo "* Hit Ctrl-D to exit"
|
||||||
echo
|
echo
|
||||||
# Force error after shell exits
|
# Force error after shell exits
|
||||||
$SHELL --noprofile --norc && exit 1
|
env bash --noprofile --norc && exit 1
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user