]> git.saurik.com Git - apt.git/blame_incremental - test/integration/test-bug-719263-print-uris-removes-authentication
fix test to not spoil output with warnings
[apt.git] / test / integration / test-bug-719263-print-uris-removes-authentication
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4TESTDIR=$(readlink -f $(dirname $0))
5. $TESTDIR/framework
6
7setupenvironment
8configarchitecture 'amd64'
9
10insertinstalledpackage 'unrelated' 'all' '1'
11buildsimplenativepackage 'unrelated' 'all' '2' 'unstable'
12
13setupaptarchive
14
15testnoact() {
16 cp -a rootdir/var/lib/dpkg/status rootdir/var/lib/dpkg/status-backup-noact
17 touch rootdir/var/lib/apt/extended_states
18 testequal 'Reading package lists...
19Building dependency tree...
20Reading state information...
21The following packages will be upgraded:
22 unrelated
231 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
24Inst unrelated [1] (2 unstable [all])
25Conf unrelated (2 unstable [all])' aptget install unrelated -s
26 testsuccess aptget install unrelated -y
27 testdpkginstalled unrelated
28 rm -rf rootdir/var/cache/apt/*.bin
29 cp -a rootdir/var/lib/dpkg/status-backup-noact rootdir/var/lib/dpkg/status
30}
31
32testnoact
33testsuccess aptget update --print-uris
34testnoact
35
36# same thing, just not with InRelease this time
37rm -rf rootdir/var/lib/apt/lists
38testsuccess aptget update -o Acquire::TryInRelease=0
39
40testnoact
41testsuccess aptget update --print-uris -o Acquire::TryInRelease=0
42testnoact