summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-10 17:00:42 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-10 17:03:03 +0000
commitabbe9041dc53bc874ec845f1c7353d43a864b560 (patch)
tree8f820d811ffcee09382fd8294798559f2cc0dd52 /tests/lib
parent470a6734ed3fb8ed87d76e7dc716963cfe232e6b (diff)
test suite: Arrange not to overwrite .save-env on t-chain-test
We want .save-env to be the env on entry to the original test, not on execution of t-chain-test with a modified environment. Without this the effects of t-defdistro might leak into the execution of tests/setup/examplegit. This is no good because tests/setup/examplegit relies in the -dtest-dummy which is our usual dgit runes. (Or to put it another way, examplegit uses many suites which are not (yet) set up properly by t-defdistro.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/lib b/tests/lib
index 4ddd6d8..7023dbf 100644
--- a/tests/lib
+++ b/tests/lib
@@ -53,6 +53,7 @@ tmp=`pwd`
t-set-using-tmp
+test -f $tmp/.save-env || \
env -0 >$tmp/.save-env
ln -f $troot/ssh ssh