From df23d02e665d9183e5b9f81b3f7e1f67450294b5 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Thu, 19 Nov 2020 09:18:37 +0100 Subject: [PATCH] Revert "Do not throw error" This reverts commit d369491336666c39da916c882655b07b21545702. --- apps/remix-ide-e2e/script.js | 6 +++--- apps/remix-ide-e2e/script.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/remix-ide-e2e/script.js b/apps/remix-ide-e2e/script.js index a98cee0b7b..a45f3a8669 100644 --- a/apps/remix-ide-e2e/script.js +++ b/apps/remix-ide-e2e/script.js @@ -20,7 +20,7 @@ bash.stderr.on('data', (data) => { bash.on('exit', (code) => { console.log(`Process exited with code ${code}`) - // if (parseInt(code) === 1) { - // throw new Error('Failed with error code 1') - // } + if (parseInt(code) === 1) { + throw new Error('Failed with error code 1') + } }) \ No newline at end of file diff --git a/apps/remix-ide-e2e/script.sh b/apps/remix-ide-e2e/script.sh index a702ea4022..082f0fa5a4 100755 --- a/apps/remix-ide-e2e/script.sh +++ b/apps/remix-ide-e2e/script.sh @@ -16,7 +16,7 @@ fi eval $TEST_SCRIPT || TEST_EXITCODE=1; -echo $TEST_EXITCODE; +echo $TEST_EXITCODE if [ "$TEST_EXITCODE" -eq "1" ] then exit 1