summaryrefslogtreecommitdiff
path: root/test/integration/framework
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-03-03 11:40:22 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-03-03 11:40:22 +0100
commitd73840dc51fe0762e0d170c47e07e13211a0de95 (patch)
tree77c07d4a20f341c7c1fc79883557274005303cb8 /test/integration/framework
parent2264548ff25c3e7f8b6df22fdd59a95b11ad1462 (diff)
allow msgtest to be used with only one parameter
Diffstat (limited to 'test/integration/framework')
-rw-r--r--test/integration/framework3
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;
}