changeset 29:cbd6703ba4e7

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 02 Jul 2015 14:35:10 +0200
parents 156c7ae164b5
children 1f8d1f64e5d1
files Tests/Run.py
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Tests/Run.py	Wed Jul 01 12:10:30 2015 +0200
+++ b/Tests/Run.py	Thu Jul 02 14:35:10 2015 +0200
@@ -81,9 +81,6 @@
 ## Orthanc
 ##
 
-if args.docker:
-    args.server = GetDockerHostAddress()
-
 CONFIG = '/tmp/IntegrationTestsConfiguration.json'
 subprocess.check_call([ 'Orthanc', '--config=%s' % CONFIG ])
 
@@ -111,8 +108,13 @@
 ])
 
 
+if args.docker:
+    localServer = GetDockerHostAddress()
+else:
+    localServer = 'localhost'
+
 LOCAL = DefineOrthanc(aet = 'ORTHANCTEST',
-                      server = 'localhost',
+                      server = localServer,
                       dicomPort = 5001,
                       restPort = 5000,
                       username = 'alice',