summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-06-08 15:10:04 -0400
committerOri Bernstein <ori@eigenstate.org>2016-06-08 15:10:04 -0400
commitbc046635d6368a7e81bcc172efb121d54b05ebcd (patch)
tree860389dac08f666baf686e5c9f4ba6b49dda3a11 /test
parent3af73a7086c91dd6b94b5407081e4a9c80014a5b (diff)
downloadmc-bc046635d6368a7e81bcc172efb121d54b05ebcd.tar.gz
Make the build work on linux dash
Diffstat (limited to 'test')
-rwxr-xr-xtest/runtest.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/runtest.sh b/test/runtest.sh
index 395ad67..52871dc 100755
--- a/test/runtest.sh
+++ b/test/runtest.sh
@@ -73,8 +73,10 @@ expectfcompare() {
B() {
test="$1"; shift
type="$1"; shift
- res="$1"; shift
- if [ $# > 0 ]; then
+ if [ $# -gt 0 ]; then
+ res="$1"; shift
+ fi
+ if [ $# -gt 0 ]; then
args="$1"; shift
fi
echo "test $test <<{!"