fix error handling for spack test results command (#19987)
This commit is contained in:
parent
c42ce439e4
commit
38cf4f9fc2
@ -333,6 +333,7 @@ def test_results(args):
|
|||||||
if names:
|
if names:
|
||||||
test_suites = [spack.install_test.get_test_suite(name) for name
|
test_suites = [spack.install_test.get_test_suite(name) for name
|
||||||
in names]
|
in names]
|
||||||
|
test_suites = list(filter(lambda ts: ts is not None, test_suites))
|
||||||
if not test_suites:
|
if not test_suites:
|
||||||
tty.msg('No test suite(s) found in test stage: {0}'
|
tty.msg('No test suite(s) found in test stage: {0}'
|
||||||
.format(', '.join(names)))
|
.format(', '.join(names)))
|
||||||
|
Loading…
Reference in New Issue
Block a user