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

Commit

Permalink
Fix test for whether rb command works.
Browse files Browse the repository at this point in the history
  • Loading branch information
bredelings committed May 21, 2019
1 parent ef9ec65 commit 13a1933
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/run_integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ if [ -z "$1" ] ; then
fi


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

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

0 comments on commit 13a1933

Please sign in to comment.