Parcourir la source

tests: allow setting environment in extra file

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
David Kalnischkies il y a 10 ans
Parent
commit
60b48d4fc8
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      test/integration/framework

+ 4 - 0
test/integration/framework

@@ -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"
 }