diff options
author | Greg Becker <becker33@llnl.gov> | 2020-11-18 16:16:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 16:16:34 -0800 |
commit | 10f784338ba1a26dcdd8e415c518ae14006ed0fa (patch) | |
tree | 9a5795ee0ca8f968e9a17cc7192009cb3ac09ac6 | |
parent | 3b9155239b83cd22074f8db057e9ad28f37f008e (diff) | |
download | spack-10f784338ba1a26dcdd8e415c518ae14006ed0fa.tar.gz spack-10f784338ba1a26dcdd8e415c518ae14006ed0fa.tar.bz2 spack-10f784338ba1a26dcdd8e415c518ae14006ed0fa.tar.xz spack-10f784338ba1a26dcdd8e415c518ae14006ed0fa.zip |
fix error handling for spack test results command (#19987)
-rw-r--r-- | lib/spack/spack/cmd/test.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/test.py b/lib/spack/spack/cmd/test.py index 3362b8a109..10b0eb73ca 100644 --- a/lib/spack/spack/cmd/test.py +++ b/lib/spack/spack/cmd/test.py @@ -333,6 +333,7 @@ def test_results(args): if names: test_suites = [spack.install_test.get_test_suite(name) for name in names] + test_suites = list(filter(lambda ts: ts is not None, test_suites)) if not test_suites: tty.msg('No test suite(s) found in test stage: {0}' .format(', '.join(names))) |