Set exit code

fix-debugger
ioedeveloper 4 years ago
parent 2b96bc6756
commit 2514d8d2f2
  1. 7
      apps/remix-ide-e2e/script.js
  2. 6
      apps/remix-ide-e2e/script.sh

@ -11,14 +11,13 @@ commands.forEach(val => {
const bash = spawn('apps/remix-ide-e2e/script.sh', [env, filePath]); const bash = spawn('apps/remix-ide-e2e/script.sh', [env, filePath]);
bash.stdout.on('data', (data) => { bash.stdout.on('data', (data) => {
console.log(data.toString()); console.log(data.toString())
}); });
bash.stderr.on('data', (data) => { bash.stderr.on('data', (data) => {
console.log(data.toString()); console.log(data.toString())
throw new Error(data)
}); });
bash.on('exit', (code) => { bash.on('exit', (code) => {
console.log(`Process exited with code ${code}`); console.log(`Process exited with code ${code}`)
}); });

@ -15,3 +15,9 @@ then
fi fi
eval $TEST_SCRIPT; eval $TEST_SCRIPT;
echo "$TEST_EXITCODE"
if [ "$TEST_EXITCODE" -eq 1 ]
then
exit 1
fi
Loading…
Cancel
Save