summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-10-11 14:44:05 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-10-11 14:44:05 +0200
commit2aa7df1d88017a7f0352e210b129889ad8b6f7f3 (patch)
tree917eb0a7e7cd42455b14501e47428203432221de /test/integration
parentea65d079e19231eee2b9a167384fac33c1534290 (diff)
run apt-get download in quiet mode as it messes with output otherwise
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-apt-get-download11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/integration/test-apt-get-download b/test/integration/test-apt-get-download
index 7db93c32f..4edb7c173 100755
--- a/test/integration/test-apt-get-download
+++ b/test/integration/test-apt-get-download
@@ -13,13 +13,12 @@ buildsimplenativepackage 'apt' 'all' '2.0' 'unstable'
setupaptarchive
testdownload() {
- msgtest 'Test download of package file' $1
- if [ -z "$3" ]; then
- aptget download ${2}
- else
- aptget download ${2}/${3}
+ local APT="$2"
+ if [ -n "$3" ]; then
+ APT="${APT}/${3}"
fi
- test -f $1 && msgpass || msgfail
+ msgtest "Test download of package file $1 with" "$APT"
+ aptget -qq download ${APT} && test -f $1 && msgpass || msgfail
}
testdownload apt_1.0_all.deb apt stable