From 99065bb235afafdcba30cf5fbe93af032bc69eb5 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. This is a back-port of commit 1821bba from the master branch. --- test/runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runner.c b/test/runner.c index 65f794c2..19b93f9a 100644 --- a/test/runner.c +++ b/test/runner.c @@ -217,7 +217,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);