Set exit code

fix-debugger
ioedeveloper 4 years ago
parent 2b96bc6756
commit 2514d8d2f2
  1. 7
      apps/remix-ide-e2e/script.js
  2. 8
      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}`)
});

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