From 23b93474b156ad9a5e60ac24720a6aa2c006adb2 Mon Sep 17 00:00:00 2001 From: Timothy J Fontaine Date: Mon, 25 Feb 2013 09:43:34 -0800 Subject: [PATCH] test: don't rewind_cursor when using tap_output This is a back-port of commit 72bbf5d from the master branch. --- test/runner.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/runner.c b/test/runner.c index 46aadf154..65f794c2d 100644 --- a/test/runner.c +++ b/test/runner.c @@ -64,7 +64,9 @@ int run_tests(int timeout, int benchmark_output) { continue; } - rewind_cursor(); + if (!tap_output) + rewind_cursor(); + if (!benchmark_output && !tap_output) { log_progress(total, passed, failed, task->task_name); } @@ -77,7 +79,8 @@ int run_tests(int timeout, int benchmark_output) { current++; } - rewind_cursor(); + if (!tap_output) + rewind_cursor(); if (!benchmark_output && !tap_output) { log_progress(total, passed, failed, "Done.\n");