diff options
author | Rob Landley <rob@landley.net> | 2017-04-26 16:36:19 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-04-26 16:36:19 -0500 |
commit | 083c9bca70a327c7ca452310b6a3e047d446ca59 (patch) | |
tree | 42490d9cf4992fcea9d7416b63e119701dcc7895 | |
parent | 2d06767f568495d57e43c30b02c22851da9b15db (diff) | |
download | toybox-083c9bca70a327c7ca452310b6a3e047d446ca59.tar.gz |
Elliott wants to run the toybox tests on android host and there's an sh but
it isn't toysh, so test for a bash alias.
-rwxr-xr-x | tests/sh.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/sh.test b/tests/sh.test index 2d6128c8..1d228dcf 100755 --- a/tests/sh.test +++ b/tests/sh.test @@ -4,6 +4,13 @@ #testing "name" "command" "result" "infile" "stdin" +if [ -z "$(which bash)" ] +then + echo "$SHOWSKIP: no bash alias" + continue 2>/dev/null + exit +fi + shellit() { EVAL="bash -c" testing "$2" "$1 printf %s $2" "$3" "$4" "$5" |