-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
verdi computer test
: fix bug in spurious output test
#4316
verdi computer test
: fix bug in spurious output test
#4316
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4316 +/- ##
===========================================
+ Coverage 79.04% 79.10% +0.07%
===========================================
Files 468 468
Lines 34610 34611 +1
===========================================
+ Hits 27354 27376 +22
+ Misses 7256 7235 -21
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
So, this is just 100% hunch, but where you are defining the |
It absolutely should, just forgot to switch them. Will update it, thanks |
e7d1689
to
e1d9ecb
Compare
Thanks! |
The test that checks for spurious output when executing a normal command on a computer over the transport had a bug in it that went unnoticed because the code path was not tested. If the `stderr` of the command contained any output the command would raise because the test that is called `_computer_test_no_unexpected_output` would incorrectly return a tuple of length one instead of two in that case. In addition to adding tests to hit this code path, the message that is printed in the case of non-empty stdout or stderr is deduplicated and adapted to be bit clearer and refer directly to the documentation instead of through a Github issue.
e1d9ecb
to
c85e929
Compare
@giovannipizzi done! |
Fixes #4314
The test that checks for spurious output when executing a normal command
on a computer over the transport had a bug in it that went unnoticed
because the code path was not tested. If the
stderr
of the commandcontained any output the command would raise because the test that is
called
_computer_test_no_unexpected_output
would incorrectly return atuple of length one instead of two in that case.
In addition to adding tests to hit this code path, the message that is
printed in the case of non-empty stdout or stderr is deduplicated and
adapted to be bit clearer and refer directly to the documentation
instead of through a Github issue.