]> git.saurik.com Git - apt.git/commitdiff
tests: allow setting environment in extra file
authorDavid Kalnischkies <david@kalnischkies.de>
Sun, 3 Jul 2016 08:54:25 +0000 (10:54 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Tue, 5 Jul 2016 10:48:41 +0000 (12:48 +0200)
It can be handy to set apt options for the testcases which shouldn't be
accidentally committed like external planner testing or workarounds for
local setups.

Gbp-Dch: Ignore

test/integration/framework

index 4aa89cf203f8c848ddc9e1d6a4bce93a2dd47f37..fe6f82ac9779f5effeb27e0ed739c435a1ed7eaa 100644 (file)
@@ -433,6 +433,10 @@ EOF
        # most tests just need one signed Release file, not both
        export APT_DONT_SIGN='Release.gpg'
 
+       if [ -r "${TESTDIRECTORY}/extra-environment" ]; then
+               . "${TESTDIRECTORY}/extra-environment"
+       fi
+
        msgdone "info"
 }