# HG changeset patch # User Sebastien Jodogne # Date 1466519622 -7200 # Node ID 91e2ed032f9680e09ebd708336143c9a9ece0559 # Parent 5920954287dd602d065314282753d3d41b76475e fix test diff -r 5920954287dd -r 91e2ed032f96 GenerateConfigurationForTests.py --- a/GenerateConfigurationForTests.py Wed May 25 17:08:40 2016 +0200 +++ b/GenerateConfigurationForTests.py Tue Jun 21 16:33:42 2016 +0200 @@ -43,6 +43,11 @@ parser.add_argument('--plugins', help = 'Add a path to a folder containing plugins') +parser.add_argument('--dicom', + type = int, + default = 4242, + help = 'DICOM port of the Orthanc server') + args = parser.parse_args() @@ -75,6 +80,7 @@ config = f.read() config = re.sub(r'("DicomAet"\s*:)\s*".*?"', r'\1 "ORTHANC"', config) +config = re.sub(r'("DicomPort"\s*:)\s*.*?,', r'\1 %d,' % args.dicom, config) config = re.sub(r'("RemoteAccessAllowed"\s*:)\s*false', r'\1 true', config) config = re.sub(r'("AuthenticationEnabled"\s*:)\s*false', r'\1 true', config) config = re.sub(r'("DicomAssociationCloseDelay"\s*:)\s*[0-9]*', r'\1 0', config) @@ -89,6 +95,9 @@ # Enable case-insensitive PN (the default on versions <= 0.8.6) config = re.sub(r'("CaseSensitivePN"\s*:)\s*true', r'\1 false', config) +config = re.sub(r'("AllowFindSopClassesInStudy"\s*:)\s*false', r'\1 true', config) + + if args.plugins != None: config = re.sub(r'("Plugins"\s*:\s*\[)', r'\1 "%s"' % args.plugins, config)