chiark / gitweb /
test-common: Handle mtest correctly too
[secnet.git] / test-common.tcl
index 47b867df3c74b7f7b77132df7060dbdb69336e94..04def333a1690acf1493b545e814019d1721d627 100644 (file)
@@ -17,7 +17,7 @@ if {![catch {
     set tmp $env(AUTOPKGTEST_ARTIACTS)
 }]} {} elseif {![catch {
     set tmp $env(AUTOPKGTEST_TMP)
-}]} {} elseif {[regsub {^stest/t-} $argv0 {stest/d-} tmp]} {
+}]} {} elseif {[regsub {^([sm]test)/t-} $argv0 {\1/d-} tmp]} {
     set tmp $builddir/$tmp
     file mkdir $tmp
 }