doc-detective / doc-detective-core

The NPM package that powers Doc Detective's testing functionality.
https://doc-detective.com
MIT License
8 stars 2 forks source link

runShell steps with non-zero exit codes exit as `-2` in bash shells #169

Open hawkeyexl opened 3 weeks ago

hawkeyexl commented 3 weeks ago

However, they run fine locally. Need to investigate why the spawn resolution is failing.

hawkeyexl commented 3 weeks ago

For example, see #168.

hawkeyexl commented 2 weeks ago

Upon further investigation, non-zero exits in spawned bash shells are erroring out with a -2 code, regardless what the command actually exited with. Set an error capture to prevent a crash, but need further investigation into how to capture the correct exit code.