From 02b3917f515c48be72fecdda52b3f84eea2358d5 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Sun, 23 Mar 2014 23:18:06 +0100 Subject: [PATCH] tests: Use sed '$d' because head -n -1 is not portable Fixes bug 726908 --- tests/testrunner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testrunner.sh b/tests/testrunner.sh index 8d4780846..a96b5ac5d 100755 --- a/tests/testrunner.sh +++ b/tests/testrunner.sh @@ -96,7 +96,7 @@ function sourceend() { echo " " >> $SOURCEFILE echo "" >> $SOURCEFILE fi - echo "$VAPIGEN $VAPIGENFLAGS --library $ns $ns.gir && tail -n +5 $ns.vapi|head -n -1|diff -wu $ns.vapi.ref -" > check + echo "$VAPIGEN $VAPIGENFLAGS --library $ns $ns.gir && tail -n +5 $ns.vapi|sed '\$d'|diff -wu $ns.vapi.ref -" > check else echo "}" >> $SOURCEFILE echo "./test$EXEEXT /$testpath" > check -- 2.47.2