diff --git a/examples/Python/PET/run_all.py b/examples/Python/PET/run_all.py index 8a366fc22..ed8f047fb 100644 --- a/examples/Python/PET/run_all.py +++ b/examples/Python/PET/run_all.py @@ -24,7 +24,7 @@ for i in glob.glob('*.py'): narg = len(sys.argv) - if narg > 1 and i.find('listmode') >= 0: + if narg > 1 and (i.find('from') >= 0 or i.find('listmode') >=0): continue if os.path.abspath(__file__) == os.path.abspath(i): continue diff --git a/src/xSTIR/pSTIR/tests/CMakeLists.txt b/src/xSTIR/pSTIR/tests/CMakeLists.txt index e3012818c..80e6ea4b1 100644 --- a/src/xSTIR/pSTIR/tests/CMakeLists.txt +++ b/src/xSTIR/pSTIR/tests/CMakeLists.txt @@ -29,6 +29,6 @@ endif() add_test(NAME PET_TESTS_PYTHON COMMAND ${PYTHON_EXECUTABLE} -m nose --with-coverage --cover-package=sirf.STIR src/xSTIR/pSTIR ${exclude_test} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) -#add_test(NAME PET_DEMOS_PYTHON -# COMMAND ${PYTHON_EXECUTABLE} run_all.py --non-interactive -# WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/examples/Python/PET") +add_test(NAME PET_DEMOS_PYTHON + COMMAND ${PYTHON_EXECUTABLE} run_all.py --non-interactive + WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/examples/Python/PET")