]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Use sed '$d' because head -n -1 is not portable
authorLuca Bruno <lucabru@src.gnome.org>
Sun, 23 Mar 2014 22:18:06 +0000 (23:18 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Sun, 23 Mar 2014 22:18:06 +0000 (23:18 +0100)
Fixes bug 726908

tests/testrunner.sh

index 8d4780846feaccd6986353890bad177a55e20ec8..a96b5ac5d343830d24c04123ec19b8e6039e389a 100755 (executable)
@@ -96,7 +96,7 @@ function sourceend() {
                                echo "  </namespace>" >> $SOURCEFILE
                                echo "</repository>" >> $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