TestConcurrentSession
)
+IF (WIN32)
+ SET(PY_EXEC $ENV{PYTHONBIN})
+ENDIF()
+
FOREACH(tfile ${TEST_NAMES})
SET(TEST_NAME ${COMPONENT_NAME}_SALOME_CONCURRENT_${tfile})
- ADD_TEST(${TEST_NAME} ${tfile}.py)
+ ADD_TEST(${TEST_NAME} ${PY_EXEC} ${tfile}.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
ENDFOREACH()
TestLauncherSessionArgs
)
+IF(WIN32)
+ SET(PY_EXEC $ENV{PYTHONBIN})
+ENDIF()
+
FOREACH(tfile ${TEST_NAMES})
SET(TEST_NAME ${COMPONENT_NAME}_SALOME_COMMAND_${tfile})
- ADD_TEST(${TEST_NAME} ${tfile}.py)
+ ADD_TEST(${TEST_NAME} ${PY_EXEC} ${tfile}.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
ENDFOREACH()
def setUp(self):
import tempfile
self.logFile = tempfile.NamedTemporaryFile()
+ if sys.platform == "win32": # Close file because of permission denined on Windows
+ self.logFile.close()
#
def tearDown(self):
self.logFile.close()
SET(TEST_NAMES instances)
+IF (WIN32)
+ SET(PY_EXEC $ENV{PYTHONBIN})
+ENDIF()
+
FOREACH(tfile ${TEST_NAMES})
SET(TEST_NAME ${COMPONENT_NAME}_SALOME_INSTANCE_${tfile})
- ADD_TEST(${TEST_NAME} ${tfile}.py)
+ ADD_TEST(${TEST_NAME} ${PY_EXEC} ${tfile}.py)
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}" TIMEOUT ${TIMEOUT})
ENDFOREACH()