From 35fbddc5e7db5b0f00dc932192f598c1379ad08d Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Fri, 4 Jan 2019 08:58:41 -0330 Subject: Revert "remove error flags from drizzle setup" This reverts commit 938f4286e49dbdf7aef5b767917ad34ec6c6bb04. --- test/e2e/beta/run-drizzle.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/e2e/beta/run-drizzle.sh b/test/e2e/beta/run-drizzle.sh index 09b903afb..6d547eace 100755 --- a/test/e2e/beta/run-drizzle.sh +++ b/test/e2e/beta/run-drizzle.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +set -e +set -u +set -o pipefail + export PATH="$PATH:./node_modules/.bin" npm run ganache:start -- -b 2 >> /dev/null 2>&1 & -- cgit v1.2.3 From 4d4d4caf78dc5a3c8eaa93e2bc2e7581ac15b6df Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Fri, 4 Jan 2019 09:07:33 -0330 Subject: Clean up drizzle test runner script --- test/e2e/beta/run-drizzle.sh | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/test/e2e/beta/run-drizzle.sh b/test/e2e/beta/run-drizzle.sh index 6d547eace..0799b5a65 100755 --- a/test/e2e/beta/run-drizzle.sh +++ b/test/e2e/beta/run-drizzle.sh @@ -4,17 +4,28 @@ set -e set -u set -o pipefail -export PATH="$PATH:./node_modules/.bin" - npm run ganache:start -- -b 2 >> /dev/null 2>&1 & +npm_run_ganache_start_pid=$! sleep 5 -cd test/e2e/beta/ -rm -rf drizzle-test -mkdir drizzle-test && cd drizzle-test -npm install truffle -../../../../node_modules/.bin/truffle unbox drizzle + +pushd "$(mktemp -d)" +npm install --no-package-lock truffle +truffle="$(npm bin)/truffle" +$truffle unbox drizzle echo "Deploying contracts for Drizzle test..." -../../../../node_modules/.bin/truffle compile && ../../../../node_modules/.bin/truffle migrate +$truffle compile +$truffle migrate + BROWSER=none npm start >> /dev/null 2>&1 & -cd ../../../../ -mocha test/e2e/beta/drizzle.spec +npm_start_pid=$! + +popd +if ! mocha test/e2e/beta/drizzle.spec +then + test_status=1 +fi + +! kill -15 $npm_run_ganache_start_pid +! kill -15 $npm_start_pid +! wait $npm_run_ganache_start_pid $npm_start_pid +exit ${test_status:-} -- cgit v1.2.3