[vala] tests: Use sed '$d' because head -n -1 is not portable
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [vala] tests: Use sed '$d' because head -n -1 is not portable
- Date: Sun, 23 Mar 2014 22:18:54 +0000 (UTC)
commit 02b3917f515c48be72fecdda52b3f84eea2358d5
Author: Luca Bruno <lucabru src gnome org>
Date:   Sun Mar 23 23:18:06 2014 +0100
    tests: Use sed '$d' because head -n -1 is not portable
    
    Fixes bug 726908
 tests/testrunner.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/testrunner.sh b/tests/testrunner.sh
index 8d47808..a96b5ac 100755
--- a/tests/testrunner.sh
+++ b/tests/testrunner.sh
@@ -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
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]