test: don't rewind_cursor when using tap_output

This commit is contained in:
Timothy J Fontaine 2013-02-25 09:43:34 -08:00 committed by Ben Noordhuis
parent 4b957482ba
commit 72bbf5d702

View File

@ -102,7 +102,9 @@ int run_tests(int timeout, int benchmark_output) {
continue; continue;
} }
rewind_cursor(); if (!tap_output)
rewind_cursor();
if (!benchmark_output && !tap_output) { if (!benchmark_output && !tap_output) {
log_progress(total, passed, failed, task->task_name); log_progress(total, passed, failed, task->task_name);
} }
@ -115,7 +117,8 @@ int run_tests(int timeout, int benchmark_output) {
current++; current++;
} }
rewind_cursor(); if (!tap_output)
rewind_cursor();
if (!benchmark_output && !tap_output) { if (!benchmark_output && !tap_output) {
log_progress(total, passed, failed, "Done.\n"); log_progress(total, passed, failed, "Done.\n");