X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/e29a7a394cfd41e8bad81535e0a8c07654f34bf6..dabe9e2482180ada77d2adda2b3c03db22059fb8:/test/integration/test-bug-753297-upgradable diff --git a/test/integration/test-bug-753297-upgradable b/test/integration/test-bug-753297-upgradable index 068704b3e..353728db0 100755 --- a/test/integration/test-bug-753297-upgradable +++ b/test/integration/test-bug-753297-upgradable @@ -1,8 +1,8 @@ #!/bin/sh set -e -TESTDIR=$(readlink -f $(dirname $0)) -. $TESTDIR/framework +TESTDIR="$(readlink -f "$(dirname "$0")")" +. "$TESTDIR/framework" setupenvironment configarchitecture 'i386' @@ -16,8 +16,7 @@ Pin: release unstable Pin-Priority: 1 EOF -insertinstalledpackage 'foo' 'all' '1' -insertpackage 'testing' 'foo' 'all' '1' +insertpackage 'testing,installed' 'foo' 'all' '1' insertpackage 'testing-updates' 'foo' 'all' '2' insertpackage 'unstable' 'foo' 'all' '3' @@ -26,9 +25,11 @@ insertpackage 'testing' 'bar' 'all' '2' setupaptarchive -testequal "Listing... -bar/testing 2 all [upgradable from: 1]" apt list --upgradable +testsuccessequal "Listing... +bar/testing 2 all [upgradable from: 1] +N: There is 1 additional version. Please use the '-a' switch to see it" apt list --upgradable -testequal "Listing... +testsuccessequal "Listing... bar/testing 2 all [upgradable from: 1] +dpkg/now 1.16.2+fake all [installed,local] foo/testing,now 1 all [installed]" apt list