From e54cf303cef16086dab785aa18e897332b29b0a2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 30 Jun 2019 20:31:20 +0100 Subject: [PATCH] test suite: t-setup-done: Arrange to save all DGIT_TEST_REAL_* Otherwise the importer may end up with our stunt versions on their PATH, but without the necessary DGIT_TEST_REAL_* variables which stop infinite recursion. Signed-off-by: Ian Jackson --- tests/lib | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/lib b/tests/lib index 00ef4170..28b08e61 100644 --- a/tests/lib +++ b/tests/lib @@ -520,6 +520,14 @@ t-setup-done () { ' $vn "$(eval "printf '%s\n' \"\$$vn\"")" done + perl >&4 -"I$root" -MDebian::Dgit -we ' + foreach my $vn (grep m/^DGIT_TEST_REAL_/, keys %ENV) { + print STDERR "saving-exporting $vn\n"; + printf "export %s=%s\n", $vn, shellquote $ENV{$vn} + or die $!; + } + ' + (set -e; cd $tmp; tar cf $import.tar $savedirs) printf >&4 "\n%s\n" "$importeval" -- 2.30.2