|
From: <sv...@va...> - 2009-07-22 18:53:54
|
Author: bart
Date: 2009-07-22 19:53:46 +0100 (Wed, 22 Jul 2009)
New Revision: 10528
Log:
More filter tuning: remove the empty line above instead of below the ... 100 errors ... message.
Modified:
trunk/drd/tests/filter_stderr
Modified: trunk/drd/tests/filter_stderr
===================================================================
--- trunk/drd/tests/filter_stderr 2009-07-22 18:40:00 UTC (rev 10527)
+++ trunk/drd/tests/filter_stderr 2009-07-22 18:53:46 UTC (rev 10528)
@@ -29,8 +29,8 @@
-e "s/ (\([a-zA-Z_]*\.cpp\):[0-9]*)/ (\1:?)/" |
# Remove the message that more than hundred errors have been detected
-# (consists of two lines) and also the empty line below it.
-awk '{if ($0 == "More than 100 errors detected. Subsequent errors") {getline;getline} else print}' |
+# (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; }' |
# Anonymise addresses
$dir/../../tests/filter_addresses
|