We provide a new mechanism for individual tests to disable the
automatic t-setup-import of gnupg.
We need to add this to all the other setup/ that these import, too.
gdr-convert-gbp is particularly awkward because it wants gnupg if
$ifarchive isn't `:'. There we arrange to suppress its automatic
inclusion, but add it again by hand if appropriate.
This fixes these two tests in chroots without gnupg.
Closes:#902559.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
apropos of discussion in #902534.
Bugfixes:
apropos of discussion in #902534.
Bugfixes:
+ * test suite: gdr-viagit, gdr-newupstream: Do not spuriously
+ fail if gnupg not serendipitously installed. Closes:#902559.
* Fix bug ref to #865444 in previous changelog entry.
--
* Fix bug ref to #865444 in previous changelog entry.
--
t-git-config dgit.default.old-dsc-distro test-dummy
t-git-config dgit.default.old-dsc-distro test-dummy
-case "$0" in
-*/gnupg) ;;
-*) t-setup-import gnupg ;;
-esac
+for import in ${autoimport-gnupg}; do
+ case "$0" in
+ */$import) ;;
+ *)
+ t-setup-import $import
+ ;;
+ esac
+done
. tests/lib
. $troot/lib-gdr
. tests/lib
. $troot/lib-gdr
+$ifarchive t-setup-import gnupg
+
t-dependencies GDR
t-tstunt-parsechangelog
t-dependencies GDR
t-tstunt-parsechangelog
set -e
. tests/lib
. $troot/lib-gdr
set -e
. tests/lib
. $troot/lib-gdr
. tests/lib
t-dependencies NO-DGIT GDR
. tests/lib
t-dependencies NO-DGIT GDR
. tests/lib
t-dependencies NO-DGIT GDR
. tests/lib
t-dependencies NO-DGIT GDR