fix-debugger
ioedeveloper 4 years ago
parent 95eb65df31
commit 4213f20867
  1. 9
      apps/remix-ide-e2e/script.js
  2. 4
      apps/remix-ide-e2e/script.sh

@ -12,12 +12,15 @@ const bash = spawn('apps/remix-ide-e2e/script.sh', [env, filePath]);
bash.stdout.on('data', (data) => {
console.log(data.toString())
});
})
bash.stderr.on('data', (data) => {
console.log(data.toString())
});
})
bash.on('exit', (code) => {
console.log(`Process exited with code ${code}`)
});
if (parseInt(code) === 1) {
throw new Error('Failed with error code 1')
}
})

@ -14,10 +14,10 @@ then
TEST_SCRIPT=${TEST_SCRIPT}' '$2;
fi
eval $TEST_SCRIPT;
eval $TEST_SCRIPT || TEST_EXITCODE=1;
echo $TEST_EXITCODE
if [ $TEST_EXITCODE -eq 1 ]
if [ "$TEST_EXITCODE" -eq "1" ]
then
exit 1
fi
Loading…
Cancel
Save