This adds a dirty bit for smpirun, as python popen struggles with executing scripts, so sh needs to be explicitely added in this case.
ENDIF()
SET(TESH_OPTION "--ignore-jenkins")
-SET(TESH_COMMAND ${CMAKE_BINARY_DIR}/bin/tesh)
-IF(CMAKE_HOST_WIN32)
- SET(TESH_OPTION ${TESH_OPTION} --timeout 50)
-ENDIF()
+SET(TESH_COMMAND "${PYTHON_EXECUTABLE}" ${CMAKE_BINARY_DIR}/bin/tesh)
IF(enable_memcheck)
INCLUDE(FindValgrind)
if TeshState().wrapper is not None:
self.timeout *= 20
self.args = TeshState().wrapper + self.args
-
+ elif re.match(".*smpirun.*", self.args) is not None:
+ self.args = "sh " + self.args
+
self.args += TeshState().args_suffix
print("["+FileReader().filename+":"+str(self.linenumber)+"] "+self.args)