diff Tests/Run.py @ 6:6d645b3011e1

test_hierarchy
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 17 Jun 2015 11:31:11 +0200
parents 19eb87a45685
children f8d781d1d267
line wrap: on
line diff
--- a/Tests/Run.py	Wed Jun 17 10:42:24 2015 +0200
+++ b/Tests/Run.py	Wed Jun 17 11:31:11 2015 +0200
@@ -56,6 +56,8 @@
                     help = 'Password to the REST API')
 parser.add_argument('--force', help = 'Do not warn the user',
                     action = 'store_true')
+parser.add_argument('options', metavar = 'N', nargs = '*',
+                    help='Arguments to Python unittest')
 
 args = parser.parse_args()
 
@@ -123,7 +125,7 @@
 try:
     print('\nStarting the tests...')
     SetOrthancParameters(LOCAL, REMOTE)
-    unittest.main(argv = [ sys.argv[0] ])
+    unittest.main(argv = [ sys.argv[0] ] + args.options)
 
 finally:
     print('\nDone')