fix test.sh to accept empty 'in:' lines
authorChristian Thaeter <ct@pipapo.org>
Thu, 25 Oct 2007 14:45:20 +0000 (16:45 +0200)
committerChristian Thaeter <ct@pipapo.org>
Thu, 25 Oct 2007 14:45:20 +0000 (16:45 +0200)
tests/test.sh

index d231c08..b99910d 100755 (executable)
@@ -74,6 +74,9 @@ function TEST()
        while read -r line; do
             cmd="${line%%:*}"
             arg="${line#*: }"
+            if test "$arg" = "$cmd:"; then
+                arg=''
+            fi
             expect_return=0
 
             case $cmd in