From: Alexander Kojevnikov Date: Wed, 16 Mar 2011 06:41:10 +0000 (+0800) Subject: tests: Do not use xargs GNU extension in the test runner X-Git-Tag: 0.12.1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a37d25163f9d5b24f3593302f67806e40cac8f36;p=thirdparty%2Fvala.git tests: Do not use xargs GNU extension in the test runner Fixes bug 644884. --- diff --git a/tests/testrunner.sh b/tests/testrunner.sh index ee5ec013d..0d477ea05 100755 --- a/tests/testrunner.sh +++ b/tests/testrunner.sh @@ -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"