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 commit is contained in:
parent
cdf69dbed6
commit
1821bba408
@ -257,7 +257,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