# HG changeset patch # User Gregory Szorc # Date 2014-04-20 06:28:59 # Node ID b3399154505f04d9890370622af594c9065c9d58 # Parent 5b1b31137f95ddbb740c7ba3c054120fbf81aab9 run-tests: add options to runner diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1287,6 +1287,7 @@ class TestRunner(object): 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 @@ def main(args, parser=None): parser = parser or getparser() (options, args) = parseargs(args, parser) + runner.options = options os.umask(022) checktools()