Skip to content

Commit

Permalink
CLI: verdi computer test report correct failed tests (#6536)
Browse files Browse the repository at this point in the history
If the opening of the transport would fail in `verdi computer test` it
would always report:

    Warning: 1 out of 0 tests failed

Since opening the connection is the first test performed and its failure
is dealt with separately, the message can simply be hardcoded to 1 out
of 1 tests having failed.
  • Loading branch information
sphuber authored Jul 17, 2024
1 parent a2063f8 commit 17dc88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aiida/cmdline/commands/cmd_computer.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def computer_test(user, print_traceback, computer):
message += '\n Use the `--print-traceback` option to see the full traceback.'

echo.echo(message)
echo.echo_warning(f'{1} out of {num_tests} tests failed')
echo.echo_warning('1 out of 1 tests failed')


@verdi_computer.command('delete')
Expand Down

0 comments on commit 17dc88c

Please sign in to comment.