From: Ian Jackson Date: Thu, 14 Nov 2019 01:17:17 +0000 (+0000) Subject: test-common: Cope if argv0 starts with ./ X-Git-Tag: v0.5.1~34 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=commitdiff_plain;h=1d6b0ba15b1906d2cf243953a61a5020f65c5bf7 test-common: Cope if argv0 starts with ./ Signed-off-by: Ian Jackson --- diff --git a/test-common.tcl b/test-common.tcl index 45bddce..162ad3a 100644 --- a/test-common.tcl +++ b/test-common.tcl @@ -17,7 +17,7 @@ if {![catch { set tmp $env(AUTOPKGTEST_ARTIACTS) }]} {} elseif {![catch { set tmp $env(AUTOPKGTEST_TMP) -}]} {} elseif {[regsub {^([sm]test)/t-} $argv0 {\1/d-} tmp]} { +}]} {} elseif {[regsub {^(?:\./)?([sm]test)/t-} $argv0 {\1/d-} tmp]} { set tmp $builddir/$tmp file mkdir $tmp }