summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-10-22 16:17:44 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-10-22 19:47:04 +0100
commit816ed64edd5f42c114bda166878008e6a3877215 (patch)
tree7ffcba6519fa22758df1e8e3545711a77c5f8731 /tests/lib
parent7c24fc5496b3ad3128525e6287362e94ebb279c3 (diff)
Test suite: Introduce setup/gnupg
To work around #841143 and improve performance by amortising gnupg migration cost. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/lib b/tests/lib
index 3fe3ab0..39763c6 100644
--- a/tests/lib
+++ b/tests/lib
@@ -55,10 +55,6 @@ env -0 >$tmp/.save-env
ln -f $troot/ssh ssh
-mkdir -p $tmp/gnupg
-cp $troot/gnupg/* $tmp/gnupg
-chmod go-rw $tmp/gnupg/*
-
export DEBCHANGE_VENDOR=dpkg
mkdir -p $tmp/incoming
@@ -937,3 +933,8 @@ t-alt-test () {
t-${t%%-*}
t-chain-test "${t#*-}"
}
+
+case "$0" in
+*/gnupg) ;;
+*) t-setup-import gnupg ;;
+esac