test-bug-728500-tempdir 469 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. set -e
  3. TESTDIR="$(readlink -f "$(dirname "$0")")"
  4. . "$TESTDIR/framework"
  5. setupenvironment
  6. configarchitecture 'i386'
  7. insertpackage 'unstable' 'coolstuff' 'all' '1.0'
  8. setupaptarchive
  9. changetowebserver
  10. msgtest 'Test apt-get update with incorrect' 'TMPDIR'
  11. export TMPDIR=/does-not-exists
  12. testsuccess aptget update -o Debug::Acquire::gpg=1
  13. unset TMPDIR
  14. testsuccessequal 'coolstuff
  15. dpkg' aptcache pkgnames
  16. testsuccess ls rootdir/var/lib/apt/lists/*InRelease