From b64ef1d0addc4f3e8e21fd5b7d5e6744f0d5f9cc Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Sat, 18 May 2013 14:37:26 +0000 Subject: make it possible to specify a line with no EOL in EXP section --- test/runtests.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'test/runtests.sh') diff --git a/test/runtests.sh b/test/runtests.sh index a0e54eb3..dbf4f807 100755 --- a/test/runtests.sh +++ b/test/runtests.sh @@ -87,10 +87,17 @@ function section END { exit( found ? 0 : 1 ) } - ' $in > $out + ' $in | awk ' + /--noeol$/ { + gsub(/--noeol$/,""); + printf("%s", $0); + next; + } + { print $0 } + ' > $out # Remove the file if no section was found - [ $? = 0 ] || rm $out + [ ${PIPESTATUS[0]} = 0 ] || rm $out } function runtests() -- cgit v1.2.1