aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-08-18 15:38:24 +0200
committerAnders Svensson <[email protected]>2011-09-26 17:11:06 +0200
commit56701b99f5c7a9a361657151c4378e9151112a7d (patch)
treeafb14ec66b24ce14d76dbdda27ea9feb7364cf26
parent2a6b5dd6abbb94607b5c59ec5a1e0d292880d78d (diff)
downloadotp-56701b99f5c7a9a361657151c4378e9151112a7d.tar.gz
otp-56701b99f5c7a9a361657151c4378e9151112a7d.tar.bz2
otp-56701b99f5c7a9a361657151c4378e9151112a7d.zip
Don't require GNU sed to fail testsuite targets
-rw-r--r--lib/diameter/test/Makefile6
1 files changed, 3 insertions, 3 deletions
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 $@