[llvm-commits] [zorg] r99782 - /zorg/trunk/lnt/lnt/util/NTAuxSubmit
Daniel Dunbar
daniel at zuster.org
Sun Mar 28 15:16:32 PDT 2010
Author: ddunbar
Date: Sun Mar 28 17:16:31 2010
New Revision: 99782
URL: http://llvm.org/viewvc/llvm-project?rev=99782&view=rev
Log:
NTAuxSubmit: Fix refactos.
Modified:
zorg/trunk/lnt/lnt/util/NTAuxSubmit
Modified: zorg/trunk/lnt/lnt/util/NTAuxSubmit
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/util/NTAuxSubmit?rev=99782&r1=99781&r2=99782&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/util/NTAuxSubmit (original)
+++ zorg/trunk/lnt/lnt/util/NTAuxSubmit Sun Mar 28 17:16:31 2010
@@ -26,7 +26,7 @@
# FIXME: It would be nice to support an easy mechanism for localized
# instances of the LNT infrastructure to default to the correct server for
# their installation.
- parser.add_option("", "--server", dest="serverUrl", type=str,
+ parser.add_option("", "--server", dest="server", type=str,
default="http://llvm.org/perf/db_default/submitRun")
opts,args = parser.parse_args()
@@ -40,12 +40,12 @@
# Encode the form data.
f = open(inputFile, 'rb')
values = { 'input_data' : f.read(),
- 'commit' : ("0","1")[not not commit] }
+ 'commit' : ("0","1")[not not opts.commit] }
f.close()
data = urllib.urlencode(values)
# Send it off.
- response = urllib2.urlopen(urllib2.Request(url, data))
+ response = urllib2.urlopen(urllib2.Request(opts.server, data))
the_page = response.read()
# FIXME: Parse results and return proper error code.
More information about the llvm-commits
mailing list