Просмотр исходного кода

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
Родитель
Сommit
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"
 }