]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Do not use xargs GNU extension in the test runner
authorAlexander Kojevnikov <alexander@kojevnikov.com>
Wed, 16 Mar 2011 06:41:10 +0000 (14:41 +0800)
committerJürg Billeter <j@bitron.ch>
Sun, 29 May 2011 11:03:47 +0000 (13:03 +0200)
Fixes bug 644884.

tests/testrunner.sh

index ee5ec013dde1aef08f330e11efc09ca180d20b2f..0d477ea0593dfdfc34b69af3b3cb454eb6106b69 100755 (executable)
@@ -164,7 +164,7 @@ EOF
 
 cat $SOURCEFILES >> main.vala
 
-if $VALAC $VALAFLAGS -o test$EXEEXT $(echo $PACKAGES | xargs -n 1 -r echo -n " --pkg") main.vala &>log; then
+if $VALAC $VALAFLAGS -o test$EXEEXT $([ -z "$PACKAGES" ] || echo $PACKAGES | xargs -n 1 echo -n " --pkg") main.vala &>log; then
        echo -e "\033[0;32mOK\033[m"
 else
        echo -e "\033[0;31mFAIL\033[m"