summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2021-01-27 15:17:01 +0000
committerJulian Andres Klode <jak@debian.org>2021-01-27 15:17:01 +0000
commitce2fbbbcd5d81b4cfd60d2a277cbd9ee63d2c1e7 (patch)
treef4d2ff3d02d89317f0d829654e2b38c65df0bdec /test
parent4658cea8510037edfb8c41ad211407472d8d7e1b (diff)
parentccd952cc8793bc6b866f92912ef0bb51c42eb540 (diff)
Merge branch 'pu/include-all-translations' into 'master'
Include all translations when building the cache See merge request apt-team/apt!156
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-bug-490000-search-in-all-translations13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/test-bug-490000-search-in-all-translations b/test/integration/test-bug-490000-search-in-all-translations
index 3a034bc49..26c16181b 100755
--- a/test/integration/test-bug-490000-search-in-all-translations
+++ b/test/integration/test-bug-490000-search-in-all-translations
@@ -62,6 +62,19 @@ setupaptarchive
#
# ===========================
+# ---- LP: #1907850 - check that we actually include the translations we have in the cache, even if config changed ---
+configure_languages en zz
+testsuccess aptcache showpkg ${PKG_NAME}
+cp rootdir/tmp/testsuccess.output showpkg.output
+
+testsuccess grep -qE Translation-zz showpkg.output
+rm rootdir/etc/apt/apt.conf.d/languages.conf
+rm rootdir/var/cache/apt/*.bin
+
+testsuccess aptcache showpkg ${PKG_NAME}
+cp rootdir/tmp/testsuccess.output showpkg.output
+testsuccess grep -qE Translation-zz showpkg.output
+
# ----------[ apt ]----------
# Test that all translations are searched, but the short