diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-08-02 00:39:38 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-08-02 00:39:38 +0000 |
commit | 368436aef2d49dc5e8b4597779f4aeb506248258 (patch) | |
tree | ad3822c04c30dc44546721f0c7a486096c0a1253 /utils | |
parent | 42146446f3b2b7b44db55e17d6782ab57c8d5000 (diff) | |
download | external_llvm-368436aef2d49dc5e8b4597779f4aeb506248258.zip external_llvm-368436aef2d49dc5e8b4597779f4aeb506248258.tar.gz external_llvm-368436aef2d49dc5e8b4597779f4aeb506248258.tar.bz2 |
lit: Allow clients to define predefined parameters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109999 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/lit/lit/lit.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/lit/lit/lit.py b/utils/lit/lit/lit.py index db0653f..13d2630 100755 --- a/utils/lit/lit/lit.py +++ b/utils/lit/lit/lit.py @@ -358,8 +358,7 @@ def load_test_suite(inputs): from LitTestCase import LitTestCase return unittest.TestSuite([LitTestCase(test, litConfig) for test in tests]) -def main(): - # Bump the GIL check interval, its more important to get any one thread to a +def main(builtinParameters = {}): # Bump the GIL check interval, its more important to get any one thread to a # blocking operation (hopefully exec) than to try and unblock other threads. # # FIXME: This is a hack. @@ -469,7 +468,7 @@ def main(): inputs = args # Create the user defined parameters. - userParams = {} + userParams = dict(builtinParameters) for entry in opts.userParameters: if '=' not in entry: name,val = entry,'' |