commit | 083c9bca70a327c7ca452310b6a3e047d446ca59 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Wed Apr 26 16:36:19 2017 -0500 |
committer | Rob Landley <rob@landley.net> | Wed Apr 26 16:36:19 2017 -0500 |
tree | 42490d9cf4992fcea9d7416b63e119701dcc7895 | |
parent | 2d06767f568495d57e43c30b02c22851da9b15db [diff] |
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.
diff --git a/tests/sh.test b/tests/sh.test index 2d6128c..1d228dc 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"