From 1821bba40898ec074b284dc457e46cc1e4f65e33 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 27 Feb 2013 22:19:20 +0100 Subject: [PATCH] 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. --- test/runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runner.c b/test/runner.c index 6e4b4f67..a269b310 100644 --- a/test/runner.c +++ b/test/runner.c @@ -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);