Bläddra i källkod

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 10 år sedan
förälder
incheckning
60b48d4fc8
1 ändrade filer med 4 tillägg och 0 borttagningar
  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
 	# most tests just need one signed Release file, not both
 	export APT_DONT_SIGN='Release.gpg'
 	export APT_DONT_SIGN='Release.gpg'
 
 
+	if [ -r "${TESTDIRECTORY}/extra-environment" ]; then
+		. "${TESTDIRECTORY}/extra-environment"
+	fi
+
 	msgdone "info"
 	msgdone "info"
 }
 }