]>
Commit | Line | Data |
---|---|---|
6bbd65ee MV |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
5 | TESTDIR=$(readlink -f $(dirname $0)) | |
6 | . $TESTDIR/framework | |
7 | setupenvironment | |
8 | configarchitecture 'i386' | |
9 | ||
f74a6fa1 | 10 | insertpackage 'unstable' 'coolstuff' 'all' '1.0' |
6bbd65ee MV |
11 | |
12 | setupaptarchive | |
13 | changetowebserver | |
14 | ||
f74a6fa1 DK |
15 | msgtest 'Test apt-get update with incorrect' 'TMPDIR' |
16 | ||
63c71412 DK |
17 | OUTPUT="$(mktemp)" |
18 | addtrap "rm \"$OUTPUT\";" | |
6bbd65ee | 19 | export TMPDIR=/does-not-exists |
63c71412 | 20 | testsuccess aptget update -o Debug::Acquire::gpg=1 |
f74a6fa1 DK |
21 | unset TMPDIR |
22 | ||
25b86db1 | 23 | testsuccessequal 'coolstuff' aptcache pkgnames |
7ffac4c1 | 24 | testsuccess ls rootdir/var/lib/apt/lists/*InRelease |