diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2012-03-03 11:40:22 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2012-03-03 11:40:22 +0100 |
commit | d73840dc51fe0762e0d170c47e07e13211a0de95 (patch) | |
tree | 77c07d4a20f341c7c1fc79883557274005303cb8 /test | |
parent | 2264548ff25c3e7f8b6df22fdd59a95b11ad1462 (diff) |
allow msgtest to be used with only one parameter
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/framework | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/integration/framework b/test/integration/framework index 99088b59b..a738d27cc 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -29,7 +29,8 @@ msgtest() { while [ -n "$1" ]; do echo -n "${CINFO}$1${CCMD} " >&2; echo -n "$(echo "$2" | sed -e 's/^aptc/apt-c/' -e 's/^aptg/apt-g/' -e 's/^aptf/apt-f/')${CINFO} " >&2; - shift 2 + shift + if [ -n "$1" ]; then shift; else break; fi done echo -n "…${CNORMAL} " >&2; } |