|
From: <sv...@va...> - 2009-07-22 19:52:18
|
Author: bart
Date: 2009-07-22 20:14:31 +0100 (Wed, 22 Jul 2009)
New Revision: 10533
Log:
Bug fix: leave empty output files empty instead of transforming these into an empty line.
Modified:
trunk/drd/tests/filter_stderr
Modified: trunk/drd/tests/filter_stderr
===================================================================
--- trunk/drd/tests/filter_stderr 2009-07-22 19:06:22 UTC (rev 10532)
+++ trunk/drd/tests/filter_stderr 2009-07-22 19:14:31 UTC (rev 10533)
@@ -30,7 +30,7 @@
# Remove the message that more than hundred errors have been detected
# (consists of two lines) and also the empty line above it.
-awk 'BEGIN{begin=1} {if ($0 == "More than 100 errors detected. Subsequent errors") { getline; getline; } else { if (begin) begin = 0; else print last_line; }; last_line = $0; } END { print last_line; }' |
+awk 'BEGIN{begin=1} {if ($0 == "More than 100 errors detected. Subsequent errors") { getline; getline; } else { if (begin) begin = 0; else print last_line; }; last_line = $0; } END { if (! begin) print last_line; }' |
# Anonymise addresses
$dir/../../tests/filter_addresses
|