lit: Allow clients to define predefined parameters.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 2 Aug 2010 00:39:38 +0000 (00:39 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 2 Aug 2010 00:39:38 +0000 (00:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109999 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/lit.py

index db0653f7966d9aaa72ba12e61b372dd30ec8babb..13d263009dddc58807e4d469fbfac79f231c884a 100755 (executable)
@@ -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,''