changeset 30:1f8d1f64e5d1

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 02 Jul 2015 14:41:27 +0200
parents cbd6703ba4e7
children e07deb07289d
files Tests/Run.py
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Run.py	Thu Jul 02 14:35:10 2015 +0200
+++ b/Tests/Run.py	Thu Jul 02 14:41:27 2015 +0200
@@ -87,6 +87,9 @@
 with open(CONFIG, 'rt') as f:
     config = f.read()
 
+if args.docker and args.server == 'localhost':
+    args.server = GetDockerHostAddress()
+
 config = re.sub(r'("StorageDirectory"\s*:)\s*".*?"', r'\1 "/tmp/OrthancStorage"', config)
 config = re.sub(r'("IndexDirectory"\s*:)\s*".*?"', r'\1 "/tmp/OrthancStorage"', config)
 config = re.sub(r'("DicomAet"\s*:)\s*".*?"', r'\1 "ORTHANCTEST"', config)
@@ -108,13 +111,8 @@
 ])
 
 
-if args.docker:
-    localServer = GetDockerHostAddress()
-else:
-    localServer = 'localhost'
-
 LOCAL = DefineOrthanc(aet = 'ORTHANCTEST',
-                      server = localServer,
+                      server = 'localhost',
                       dicomPort = 5001,
                       restPort = 5000,
                       username = 'alice',