From f815fb3dfe8b5937784196feda17a3400dc6fe0f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 12 Oct 2019 22:40:51 +0100 Subject: [PATCH] test: Use test/d-* instead of test/tmp for everything Now it is actually ok to run multiple tests in parallel. Signed-off-by: Ian Jackson --- .gitignore | 1 - test/common.tcl | 10 ++++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 6b938a1..8db83a4 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,5 @@ test-example/sites.conf test-example/bogus-setup-request build-stamp -test/tmp test/d-* test/udp-preload.so diff --git a/test/common.tcl b/test/common.tcl index 59b10ba..3a2e1ae 100644 --- a/test/common.tcl +++ b/test/common.tcl @@ -155,8 +155,14 @@ proc sendpkt {} { [hbytes h2raw c0[join $p ""]c0] } -file mkdir test/tmp -set tmp test/tmp +if {![catch { + set tmp $env(AUTOPKGTEST_ARTIACTS) +}]} {} elseif {![catch { + set tmp $env(AUTOPKGTEST_TMP) +}]} {} elseif {[regsub {^test/t-} $argv0 {test/d-} tmp]} { + file mkdir $tmp +} + set socktmp $tmp/s exec mkdir -p -m700 $socktmp regsub {^(?!/)} $socktmp {./} socktmp ;# dgram-socket wants ./ or / -- 2.30.2