Преглед изворни кода

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 година
родитељ
комит
60b48d4fc8
1 измењених фајлова са 4 додато и 0 уклоњено
  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"
 }