From 130631ec74334639c00cb961cdf8c0967d46e2fe Mon Sep 17 00:00:00 2001 From: CjS77 Date: Wed, 13 Oct 2021 19:29:45 +0100 Subject: [PATCH] Create cucumber test directory if necessary The `run-tests.sh` script fails on a fresh install because the cucumber output folder doesn't exist. This PR simple checks and creates the folder if necessary. --- integration_tests/run-tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integration_tests/run-tests.sh b/integration_tests/run-tests.sh index 0f94416a73..df126c6797 100755 --- a/integration_tests/run-tests.sh +++ b/integration_tests/run-tests.sh @@ -1,2 +1,5 @@ + if [ ! -d cucumber_output ]; then + mkdir cucumber_output + fi ./node_modules/.bin/cucumber-js -f ./node_modules/cucumber-pretty -f json:cucumber_output/tests.cucumber "$@" node ./generate_report.js