Skip to content
This repository was archived by the owner on Dec 3, 2019. It is now read-only.

Commit 13a1933

Browse files
committed
Fix test for whether rb command works.
1 parent ef9ec65 commit 13a1933

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/run_integration_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ if [ -z "$1" ] ; then
1010
fi
1111

1212

13-
if [ ! $@ --help >/dev/null 2>&1 ] ; then
14-
printf "RevBayes command '$@' seems not to work!"
13+
if ! "$@" --help > /dev/null 2>&1 ; then
14+
echo "RevBayes command '$@' seems not to work!\n"
1515
exit 102
1616
fi
1717

@@ -36,7 +36,7 @@ for t in test_*; do
3636
res=0
3737
# run the test scripts
3838
for f in scripts/*; do
39-
$@ -b $f # print output so we can see any error messages
39+
"$@" -b $f # print output so we can see any error messages
4040
res="$?"
4141
if [ $res = 1 ]; then
4242
res="error: $f"

0 commit comments

Comments
 (0)