test: fix tap output check
Only report as an error when status != 0.
Stops the platform_output test from being reported as having failed
on Jenkins.
This is a back-port of commit 1821bba from the master branch.
This commit is contained in:
parent
b0c5e62035
commit
99065bb235
@ -217,7 +217,7 @@ out:
|
|||||||
|
|
||||||
/* Show error and output from processes if the test failed. */
|
/* Show error and output from processes if the test failed. */
|
||||||
if (status != 0 || task->show_output) {
|
if (status != 0 || task->show_output) {
|
||||||
if (tap_output) {
|
if (tap_output && status != 0) {
|
||||||
LOGF("not ok %d - %s\n#", test_count, test);
|
LOGF("not ok %d - %s\n#", test_count, test);
|
||||||
} else if (status != 0) {
|
} else if (status != 0) {
|
||||||
LOGF("\n`%s` failed: %s\n", test, errmsg);
|
LOGF("\n`%s` failed: %s\n", test, errmsg);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user