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:
Ben Noordhuis 2013-02-27 22:19:20 +01:00
parent cdf69dbed6
commit 1821bba408

View File

@ -257,7 +257,7 @@ out:
/* Show error and output from processes if the test failed. */
if (status != 0 || task->show_output) {
if (tap_output) {
if (tap_output && status != 0) {
LOGF("not ok %d - %s\n#", test_count, test);
} else if (status != 0) {
LOGF("\n`%s` failed: %s\n", test, errmsg);