diff Tests/Run.py @ 378:a4b8450a1158

fix test_storescu_transcoding
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 11 Feb 2021 19:05:59 +0100
parents 79ce0f7a9714
children ad98466353c6
line wrap: on
line diff
--- a/Tests/Run.py	Thu Feb 04 15:31:11 2021 +0100
+++ b/Tests/Run.py	Thu Feb 11 19:05:59 2021 +0100
@@ -158,6 +158,17 @@
     print('\nStarting the tests...')
     SetOrthancParameters(LOCAL, REMOTE, args.docker)
 
+    # Change the order of the tests
+    # https://stackoverflow.com/a/4006044/881731
+    # https://stackoverflow.com/a/54923706/881731
+
+    # Reverse order
+    # unittest.TestLoader.sortTestMethodsUsing = lambda _, x, y: cmp(y, x)
+
+    # import random
+    # random.seed(25)
+    # unittest.TestLoader.sortTestMethodsUsing = lambda self, a, b: random.choice([1, 0, -1])
+    
     unittest.main(argv = [ sys.argv[0] ] + args.options)