Przeglądaj źródła

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 lat temu
rodzic
commit
60b48d4fc8
1 zmienionych plików z 4 dodań i 0 usunięć
  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"
 }