diff tests/run-tests.py @ 21348:b3399154505f

run-tests: add options to runner
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 19 Apr 2014 23:28:59 -0700
parents 5b1b31137f95
children 2d767c7c3df0
line wrap: on
line diff
--- a/tests/run-tests.py	Sat Apr 19 23:27:11 2014 -0700
+++ b/tests/run-tests.py	Sat Apr 19 23:28:59 2014 -0700
@@ -1287,6 +1287,7 @@
     Tests rely on a lot of state. This object holds it for them.
     """
     def __init__(self):
+        self.options = None
         self.testdir = None
         self.hgtmp = None
         self.inst = None
@@ -1300,6 +1301,7 @@
 
     parser = parser or getparser()
     (options, args) = parseargs(args, parser)
+    runner.options = options
     os.umask(022)
 
     checktools()