new_variant: return error code if build fails
If the build (launched by new_variant.py) fails, return an error
code after cleaning up as much as possible.
TEST=See testdata/README.md for full details.
Use `&&` to run a second command if the first one passes.
`cd testdata ; ./new_variant_fulltest.sh hatch && echo PASS`
`cd testdata ; ./new_variant_fulltest.sh waddledoo && echo PASS`
The case with hatch will show "PASS" but because waddledoo has an
issue right now, that line won't show the "PASS".
Tested-by: Paul Fagerburg <email@example.com>
Reviewed-by: Jacob Rasmussen <firstname.lastname@example.org>
Reviewed-by: Greg Edelston <email@example.com>
Commit-Queue: Paul Fagerburg <firstname.lastname@example.org>
1 file changed