SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
LABELS "${COMPONENT_NAME}"
)
-
+
+SET(TEST_NAME ${COMPONENT_NAME}_NoSession_SampleTest)
+ADD_TEST(${TEST_NAME} ./SampleTest)
+SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
+ LABELS "${COMPONENT_NAME}"
+ )
+
+SET(TEST_NAME ${COMPONENT_NAME}_NoSession_StudyGeneralTest)
+ADD_TEST(${TEST_NAME} ./StudyGeneralTest)
+SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
+ LABELS "${COMPONENT_NAME}"
+ )
+
+SET(TEST_NAME ${COMPONENT_NAME}_NoSession_StudyRestartTest)
+ADD_TEST(${TEST_NAME} ./StudyRestartTest)
+SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES
+ LABELS "${COMPONENT_NAME}"
+ )
return result
def availableResources():
+ """ Return the list of resources defined in the current catalog."""
resManager = salome_proxy.getResourcesManager()
params = salome_proxy.createSalomeParameters()
params.resource_required.can_launch_batch_jobs = True
- return resManager.GetFittingResources(params.resource_required)
+ # GetFittingResources returns a tuple if in no salome session mode.
+ # Force to list for uniformity between the two modes.
+ return list(resManager.GetFittingResources(params.resource_required))