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]);
bash.stdout.on('data', (data) => {
console.log(data.toString());
console.log(data.toString())
});
bash.stderr.on('data', (data) => {
console.log(data.toString());
throw new Error(data)
console.log(data.toString())
});
bash.on('exit', (code) => {
console.log(`Process exited with code ${code}`);
console.log(`Process exited with code ${code}`)
});

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