spack/share/spack/qa
Massimiliano Culpo 9b298fd7e4
Add a new test to catch exit code failure (#29244)
* Add a new test to catch exit code failure

fixes #29226

This introduces a new unit test that checks the return
code of `spack unit-test` when it is supposed to fail.

This is to prevent bugs like the one introduced in #25601
in which CI didn't catch a missing return statement.

In retrospective it seems that the shell test we have right
now all go through `tty.die` or similar code paths which
call `sys.exit(a)` explicitly. This new test instead checks
`spack unit-test` which relies on the return code from
command invocation in case of errors.
2022-02-28 12:55:24 -08:00
..
configuration Add new RubyPackage build system base class (#18199) 2020-09-02 16:26:36 -07:00
bashcov Use kcov from official Ubuntu 20.04 repository (#25385) 2021-08-19 14:03:10 -07:00
completion-test.sh Update copyright year to 2022 2022-01-14 22:50:21 -08:00
flake8_formatter.py imports: sort imports everywhere in Spack (#24695) 2021-07-08 22:12:30 +00:00
run-build-tests Update copyright year to 2022 2022-01-14 22:50:21 -08:00
run-shell-tests Update copyright year to 2022 2022-01-14 22:50:21 -08:00
run-style-tests Update copyright year to 2022 2022-01-14 22:50:21 -08:00
run-unit-tests Update copyright year to 2022 2022-01-14 22:50:21 -08:00
setup-env-test.csh Update copyright year to 2022 2022-01-14 22:50:21 -08:00
setup-env-test.fish Update copyright year to 2022 2022-01-14 22:50:21 -08:00
setup-env-test.sh Add a new test to catch exit code failure (#29244) 2022-02-28 12:55:24 -08:00
setup.sh Update copyright year to 2022 2022-01-14 22:50:21 -08:00
test-env-cfg.sh Update copyright year to 2022 2022-01-14 22:50:21 -08:00
test-framework.sh Update copyright year to 2022 2022-01-14 22:50:21 -08:00