chiark / gitweb /
mtest: Honour MTEST_PYTHON
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 20 Oct 2019 11:20:25 +0000 (12:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Oct 2019 18:16:15 +0000 (19:16 +0100)
To allow running with different python versions.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
mtest/common.tcl

index 3db8d5caac9741ccbc02a7efb24cdde82d1fb199..434f722ea0e31eeacf7dc67d2f5d57deb03dbfca 100644 (file)
@@ -1,7 +1,12 @@
 source test-common.tcl
 
 proc mss-program {} {
+    global env
     set l ./make-secnet-sites
+    if {![catch { set py $env(MTEST_PYTHON) }]} {
+       set l [concat $py $l]
+    }
+    return $l
 }
 
 proc run-mss-userv {user group args} {