From 56701b99f5c7a9a361657151c4378e9151112a7d Mon Sep 17 00:00:00 2001 From: Anders Svensson Date: Thu, 18 Aug 2011 15:38:24 +0200 Subject: Don't require GNU sed to fail testsuite targets --- lib/diameter/test/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/diameter/test/Makefile b/lib/diameter/test/Makefile index fb892f1d75..08a4067cf9 100644 --- a/lib/diameter/test/Makefile +++ b/lib/diameter/test/Makefile @@ -150,7 +150,6 @@ help: @echo @echo " b) Run individual suites using targets in this makefile, target" @echo " xxx running the testcases contained in $(APPLICATION)_xxx_SUITE." - @echo " Note that this requires GNU sed." @echo @echo "Targets:" @echo @@ -180,7 +179,7 @@ help: # Special Targets # ---------------------------------------------------- -# This assumes GNU sed to exit 1 if the output looks to indicate failure. +# Exit with a non-zero status if the output looks to indicate failure. # diameter_ct:run/1 itself can't tell (it seems). $(SUITES): log targets $(ERL) -noshell \ @@ -188,7 +187,8 @@ $(SUITES): log targets -sname diameter_test_$@ \ -s diameter_ct run $@ \ -s init stop \ - | sed '/ FAILED /h; p; $$!d; x; /./!d; Q 1' + | awk '1{rc=0} {print} / FAILED /{rc=1} END{exit rc}' +# Shorter in sed but requires a GNU extension (ie. Q). log: mkdir $@ -- cgit v1.2.3