spack/share/spack
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
..
bash Update copyright year to 2022 2022-01-14 22:50:21 -08:00
bootstrap/github-actions Bootstrap GnuPG (#24003) 2021-11-02 23:15:24 -07:00
csh Update copyright year to 2022 2022-01-14 22:50:21 -08:00
docker Update copyright year to 2022 2022-01-14 22:50:21 -08:00
docs/docker/module-file-tutorial Update copyright year to 2022 2022-01-14 22:50:21 -08:00
gitlab e4s ci: packages: prefer openturns@1.18 (#29154) 2022-02-22 17:17:34 -08:00
keys Update the Public key of the tutorial (#27370) 2021-11-12 11:46:02 +01:00
logo add artisanal handcrafted SVG Spack logo. (#6165) 2017-11-06 22:42:16 -08:00
qa Add a new test to catch exit code failure (#29244) 2022-02-28 12:55:24 -08:00
templates Update copyright year to 2022 2022-01-14 22:50:21 -08:00
setup-env.csh Update copyright year to 2022 2022-01-14 22:50:21 -08:00
setup-env.fish Update copyright year to 2022 2022-01-14 22:50:21 -08:00
setup-env.sh Update copyright year to 2022 2022-01-14 22:50:21 -08:00
setup-tutorial-env.sh Update copyright year to 2022 2022-01-14 22:50:21 -08:00
spack-completion.bash Add spack --bootstrap option for accessing bootstrap store (#25601) 2022-02-22 12:35:34 -07:00