aboutsummaryrefslogtreecommitdiffstats
path: root/runtests
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-08-14 16:32:03 -0400
committerDave Reisner <dreisner@archlinux.org>2012-08-14 17:05:28 -0400
commitf594e6742633f2f8c20b1a7b29935d3196696b94 (patch)
treebfc01de7a8124ed26504b0a5abfea166bf101166 /runtests
parent3c4f584d35d151cb2e31d579b980e0d1ab9a6262 (diff)
downloadmirror-ponymix-f594e6742633f2f8c20b1a7b29935d3196696b94.tar.gz
mirror-ponymix-f594e6742633f2f8c20b1a7b29935d3196696b94.tar.bz2
mirror-ponymix-f594e6742633f2f8c20b1a7b29935d3196696b94.zip
validate argument count with string -> enum conversion
Diffstat (limited to 'runtests')
-rwxr-xr-xruntests2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtests b/runtests
index a0762cb..f07bdad 100755
--- a/runtests
+++ b/runtests
@@ -19,7 +19,7 @@ do_test() {
(( ++testno ))
- result=$("$ponymix" "$verb" -- ${arg+"$arg"} 2>/dev/null)
+ result=$("$ponymix" "$verb" -- ${3+"$arg"} 2>/dev/null)
if [[ $result != $expected ]]; then
printf '==> test %d FAIL: expected %s, got %s\n' "$testno" "$expected" "$result"
(( ++fail ))