From 10f784338ba1a26dcdd8e415c518ae14006ed0fa Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Wed, 18 Nov 2020 16:16:34 -0800 Subject: [PATCH] fix error handling for spack test results command (#19987) --- lib/spack/spack/cmd/test.py | 1 + 1 file changed, 1 insertion(+) 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)))