summaryrefslogtreecommitdiff
path: root/test/integration
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2026-01-23 12:03:04 +0100
committerJulian Andres Klode <jak@debian.org>2026-01-23 12:04:31 +0100
commit49e80c2d9061372e0ec697be43bcba4c451b7752 (patch)
treed1ed8a012a19bffb4f84f30cfe1404b1a8d312da /test/integration
parent9cb74f8992db1d21b091147ca3791531b3c43a73 (diff)
variants: Do not report unsupported variants in repositories
We configure all variants the CPU supports as active, but repositories usually do not provide all of them, so let's not be noisy.
Diffstat (limited to 'test/integration')
-rwxr-xr-xtest/integration/test-architecture-variants12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/integration/test-architecture-variants b/test/integration/test-architecture-variants
index e116720c9..5883d91a2 100755
--- a/test/integration/test-architecture-variants
+++ b/test/integration/test-architecture-variants
@@ -6,15 +6,19 @@ TESTDIR="$(readlink -f "$(dirname "$0")")"
setupenvironment
configarchitecture 'amd64'
-msgmsg "Test basic ordering scenarios"
-
-echo 'APT::Architecture-Variants { "amd64v3"; "amd64v2" }' > 'rootdir/etc/apt/apt.conf.d/variants'
+# Make sure not to add v1 to the repo. We want to test that unsupported variants are silently ignored.
+echo 'APT::Architecture-Variants { "amd64v3"; "amd64v2"; "amd64v1"; }' > 'rootdir/etc/apt/apt.conf.d/variants'
insertpackage 'unstable' 'foo' 'amd64:amd64v2' '1'
insertpackage 'unstable' 'foo' 'amd64' '1'
insertpackage 'unstable' 'foo' 'amd64:amd64v3' '1'
setupaptarchive --no-update
-testsuccessequal "" aptget update -qq
+msgtest "Test that variants, particularly an unsupported amd64v1 variant does not produce a notice"
+testsuccess --nomsg apt update
+msgtest "Test that there is no unexpected output in apt-get update -qq"
+testsuccessequal --nomsg "" aptget update -qq
+
+msgmsg "Test basic ordering scenarios"
testsuccessequal "foo:
Installed: (none)