From c2a0c2aa7bf03ba61c0dd25deb6346093e0158cc Mon Sep 17 00:00:00 2001 From: Dr Nic Williams Date: Mon, 2 Apr 2018 11:40:53 +1000 Subject: [PATCH] run test.sh if exists, else test-need-parameters.sh --- ci/scripts/testflight-with-credhub.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/scripts/testflight-with-credhub.sh b/ci/scripts/testflight-with-credhub.sh index c225e71b..51851ea9 100755 --- a/ci/scripts/testflight-with-credhub.sh +++ b/ci/scripts/testflight-with-credhub.sh @@ -46,6 +46,10 @@ for f in tutorials/*/*/test{,-need-parameters}.sh do echo "\n\n\nlesson $f\n" pushd `dirname $f` - ./test{,-need-parameters}.sh + if [[ -x ./test.sh ]]; then + ./test.sh + else + ./test-need-parameters.sh + fi popd done