From 083c9bca70a327c7ca452310b6a3e047d446ca59 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 26 Apr 2017 16:36:19 -0500 Subject: 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. --- tests/sh.test | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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" -- cgit v1.2.3