From: Luca Bruno Date: Sun, 23 Mar 2014 22:18:06 +0000 (+0100) Subject: tests: Use sed '$d' because head -n -1 is not portable X-Git-Tag: 0.24.0~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02b3917f515c48be72fecdda52b3f84eea2358d5;p=thirdparty%2Fvala.git tests: Use sed '$d' because head -n -1 is not portable Fixes bug 726908 --- 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