Skip to content

Commit

Permalink
fix error handling for spack test results command (spack#19987)
Browse files Browse the repository at this point in the history
  • Loading branch information
becker33 authored and tldahlgren committed Feb 18, 2021
1 parent c42ce43 commit 38cf4f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/spack/spack/cmd/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 38cf4f9

Please sign in to comment.