diff options
author | Michael Vogt <mvo@debian.org> | 2014-01-21 07:20:07 +0100 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-01-21 07:20:07 +0100 |
commit | f744c64c591cec9e5aa489a9af55e1ed6d1871d1 (patch) | |
tree | de1d27910d66062508b22c5a7b46c288d1b3fab9 /test/integration/test-bug-728500-tempdir | |
parent | 7f316a3feab95370f1dd28c08c58bc3c140bf0a0 (diff) | |
parent | 1700c3cfb902f3f61fa4d9269523467fcceaaf58 (diff) |
Merge remote-tracking branch 'upstream/debian/experimental-no-abi-break' into feature/source-deb822
Conflicts:
test/integration/test-apt-sources-deb822
Diffstat (limited to 'test/integration/test-bug-728500-tempdir')
-rwxr-xr-x | test/integration/test-bug-728500-tempdir | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/test/integration/test-bug-728500-tempdir b/test/integration/test-bug-728500-tempdir index 0606538a1..0451fc1ed 100755 --- a/test/integration/test-bug-728500-tempdir +++ b/test/integration/test-bug-728500-tempdir @@ -7,12 +7,23 @@ TESTDIR=$(readlink -f $(dirname $0)) setupenvironment configarchitecture 'i386' -buildsimplenativepackage 'coolstuff' 'all' '1.0' 'unstable' +insertpackage 'unstable' 'coolstuff' 'all' '1.0' setupaptarchive changetowebserver -msgtest 'Test with incorect TMPDIR' +msgtest 'Test apt-get update with incorrect' 'TMPDIR' + +OUTPUT=$(mktemp) +addtrap "rm $OUTPUT;" export TMPDIR=/does-not-exists -aptget update && msgpass || msgfail -unset TMPDIR
\ No newline at end of file +if aptget update >${OUTPUT} 2>&1; then + msgpass +else + echo + cat $OUTPUT + msgfail +fi +unset TMPDIR + +testequal 'coolstuff' aptcache pkgnames |