summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2020-11-18 16:16:34 -0800
committerTamara Dahlgren <dahlgren1@llnl.gov>2021-02-17 17:07:14 -0800
commit38cf4f9fc28f25e7326198d39b1b11b16b402acc (patch)
treeb24bca0169fd2a864fd0ee70237bf701df9db061
parentc42ce439e44f5a8261fdd9d5e4374a0dc26fa71e (diff)
downloadspack-38cf4f9fc28f25e7326198d39b1b11b16b402acc.tar.gz
spack-38cf4f9fc28f25e7326198d39b1b11b16b402acc.tar.bz2
spack-38cf4f9fc28f25e7326198d39b1b11b16b402acc.tar.xz
spack-38cf4f9fc28f25e7326198d39b1b11b16b402acc.zip
fix error handling for spack test results command (#19987)
-rw-r--r--lib/spack/spack/cmd/test.py1
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)))