run-tests: add options to runner
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 19 Apr 2014 23:28:59 -0700
changeset 21348 b3399154505f
parent 21347 5b1b31137f95
child 21349 2d767c7c3df0
run-tests: add options to runner
tests/run-tests.py
--- 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()