[llvm-commits] [zorg] r150104 - /zorg/trunk/lnt/lnt/tests/compile.py
Daniel Dunbar
daniel at zuster.org
Wed Feb 8 14:15:38 PST 2012
Author: ddunbar
Date: Wed Feb 8 16:15:38 2012
New Revision: 150104
URL: http://llvm.org/viewvc/llvm-project?rev=150104&view=rev
Log:
[lnt] lnt runtest compile: Fix up a refacto.
Modified:
zorg/trunk/lnt/lnt/tests/compile.py
Modified: zorg/trunk/lnt/lnt/tests/compile.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/tests/compile.py?rev=150104&r1=150103&r2=150104&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/compile.py (original)
+++ zorg/trunk/lnt/lnt/tests/compile.py Wed Feb 8 16:15:38 2012
@@ -442,7 +442,8 @@
def run_test(self, name, args):
global opts
parser = OptionParser(
- ("%%prog %(name)s [options] tester-name\n" + usage_info) % locals())
+ ("%%prog %(name)s [options] [<output file>]\n" +
+ usage_info) % locals())
parser.add_option("-v", "--verbose", dest="verbose",
help="Show more test output",
action="store_true", default=False)
@@ -478,7 +479,7 @@
help="Individual test to run",
action="append", default=[],
choices=[k for k,v in all_tests])
- opts,args = parser.parse_args()
+ opts,args = parser.parse_args(args)
if len(args) == 0:
output = '-'
More information about the llvm-commits
mailing list