# HG changeset patch # User Alain Mazy # Date 1651584256 -7200 # Node ID fe37cf5e9c02b65b09619e5627f1f570ff434fbc # Parent 6917a26881ed7ff74d0c8445535a9d46274e72ad force docker volume rm diff -r 6917a26881ed -r fe37cf5e9c02 NewTests/helpers.py --- a/NewTests/helpers.py Mon May 02 17:05:42 2022 +0200 +++ b/NewTests/helpers.py Tue May 03 15:24:16 2022 +0200 @@ -110,7 +110,7 @@ storage_path = cls.get_storage_path(storage_name=storage_name) shutil.rmtree(storage_path, ignore_errors=True) elif Helpers.is_docker(): - subprocess.run(["docker", "volume", "rm", storage_name]) + subprocess.run(["docker", "volume", "rm", "-f", storage_name]) @classmethod def launch_orthanc_to_prepare_db(cls, config_name: str = None, config: object = None, config_path: str = None, storage_name: str = None, plugins = []): diff -r 6917a26881ed -r fe37cf5e9c02 NewTests/main.py --- a/NewTests/main.py Mon May 02 17:05:42 2022 +0200 +++ b/NewTests/main.py Tue May 03 15:24:16 2022 +0200 @@ -20,7 +20,8 @@ parser = argparse.ArgumentParser(description='Executes Orthanc integration tests.') parser.add_argument('-k', '--pattern', dest='test_name_patterns', action='append', type=str, help='a test pattern (ex: Housekeeper.toto') parser.add_argument('--orthanc_under_tests_hostname', type=str, default="localhost", help="orthanc under tests hostname") - parser.add_argument('--orthanc_under_tests_http_port', type=int, default=8042, help="orthanc under tests HTTP port") + parser.add_argument('--orthanc_under_tests_http_port', type=int, default=8052, help="orthanc under tests HTTP port") + parser.add_argument('--orthanc_under_tests_dicom_port', type=int, default=4252, help="orthanc under tests DICOM port") parser.add_argument('--orthanc_under_tests_exe', type=str, default=None, help="path to the orthanc executable (if it must be launched by this script)") parser.add_argument('--orthanc_previous_version_exe', type=str, default=None, help="path to the orthanc executable used to prepare previous version of storage/db (if it must be launched by this script and if different from orthanc_under_tests_exe)") parser.add_argument('--orthanc_under_tests_docker_image', type=str, default=None, help="Docker image of the orthanc under tests (if it must be launched by this script)") @@ -37,6 +38,7 @@ Helpers.orthanc_under_tests_hostname = args.orthanc_under_tests_hostname Helpers.orthanc_under_tests_http_port = args.orthanc_under_tests_http_port + Helpers.orthanc_under_tests_dicom_port = args.orthanc_under_tests_dicom_port Helpers.plugins = args.plugins Helpers.orthanc_under_tests_exe = args.orthanc_under_tests_exe