[llvm-commits] [zorg] r103069 - /zorg/trunk/lnt/lnt/tests/nt.py
Daniel Dunbar
daniel at zuster.org
Tue May 4 19:00:24 PDT 2010
Author: ddunbar
Date: Tue May 4 21:00:24 2010
New Revision: 103069
URL: http://llvm.org/viewvc/llvm-project?rev=103069&view=rev
Log:
LNT/nt: Add --no-auto-name.
Modified:
zorg/trunk/lnt/lnt/tests/nt.py
Modified: zorg/trunk/lnt/lnt/tests/nt.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/tests/nt.py?rev=103069&r1=103068&r2=103069&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/nt.py (original)
+++ zorg/trunk/lnt/lnt/tests/nt.py Tue May 4 21:00:24 2010
@@ -92,10 +92,11 @@
cc_info = lnt.testing.util.compilers.get_cc_info(opts.cc_under_test,
target_flags)
- # Construct the nickname from a few key parameters.
- cc_nick = '%s_%s' % (cc_info.get('cc_name'), cc_info.get('cc_build'))
- nick = "%s__%s__%s" % (nick_prefix, cc_nick,
- cc_info.get('cc_target').split('-')[0])
+ nick = nick_prefix
+ if opts.auto_name:
+ # Construct the nickname from a few key parameters.
+ cc_nick = '%s_%s' % (cc_info.get('cc_name'), cc_info.get('cc_build'))
+ nick += "__%s__%s" % (cc_nick, cc_info.get('cc_target').split('-')[0])
print >>sys.stderr, "%s: using nickname: %r" % (timestamp(), nick)
# Set up the sandbox.
@@ -490,6 +491,9 @@
parser.add_option_group(group)
group = OptionGroup(parser, "Output Options")
+ group.add_option("", "--no-auto-name", dest="auto_name",
+ help="Don't automatically derive submission name",
+ action="store_false", default=True)
parser.add_option("", "--run-order", dest="run_order", metavar="STR",
help="String to use to identify and order this run",
action="store", type=str, default=None)
More information about the llvm-commits
mailing list