Mercurial > hg > orthanc-tests
diff Tests/Run.py @ 342:bf8369ea3ff1
more tests of webdav
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 15 Oct 2020 17:34:01 +0200 |
parents | da2be3ff2db5 |
children | 79ce0f7a9714 |
line wrap: on
line diff
--- a/Tests/Run.py Wed Oct 14 19:55:26 2020 +0200 +++ b/Tests/Run.py Thu Oct 15 17:34:01 2020 +0200 @@ -59,6 +59,9 @@ action = 'store_true') parser.add_argument('--docker', help = 'These tests are run from Docker', action = 'store_true') +parser.add_argument('--orthanc', + default = 'Orthanc', + help = 'Path to the executable of Orthanc') parser.add_argument('options', metavar = 'N', nargs = '*', help='Arguments to Python unittest') @@ -83,7 +86,7 @@ ## CONFIG = '/tmp/IntegrationTestsConfiguration.json' -subprocess.check_call([ Toolbox.FindExecutable('Orthanc'), +subprocess.check_call([ Toolbox.FindExecutable(args.orthanc), '--config=%s' % CONFIG ]) with open(CONFIG, 'rt') as f: @@ -113,8 +116,8 @@ f.write(config) localOrthanc = ExternalCommandThread([ - 'Orthanc', - CONFIG, + Toolbox.FindExecutable(args.orthanc), + CONFIG, #'--verbose', #'--no-jobs' #'/home/jodogne/Subversion/Orthanc/i/Orthanc', CONFIG, '--verbose'