[llvm-commits] [llvm] r109999 - /llvm/trunk/utils/lit/lit/lit.py
Daniel Dunbar
daniel at zuster.org
Sun Aug 1 17:39:39 PDT 2010
Author: ddunbar
Date: Sun Aug 1 19:39:38 2010
New Revision: 109999
URL: http://llvm.org/viewvc/llvm-project?rev=109999&view=rev
Log:
lit: Allow clients to define predefined parameters.
Modified:
llvm/trunk/utils/lit/lit/lit.py
Modified: llvm/trunk/utils/lit/lit/lit.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/lit.py?rev=109999&r1=109998&r2=109999&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/lit.py (original)
+++ llvm/trunk/utils/lit/lit/lit.py Sun Aug 1 19:39:38 2010
@@ -358,8 +358,7 @@
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 @@
inputs = args
# Create the user defined parameters.
- userParams = {}
+ userParams = dict(builtinParameters)
for entry in opts.userParameters:
if '=' not in entry:
name,val = entry,''
More information about the llvm-commits
mailing list