[LNT] r198454 - print RunID of submitted runs

Chris Matthews cmatthews5 at apple.com
Fri Jan 3 14:50:35 PST 2014


Author: cmatthews
Date: Fri Jan  3 16:50:34 2014
New Revision: 198454

URL: http://llvm.org/viewvc/llvm-project?rev=198454&view=rev
Log:
print RunID of submitted runs

It is nice to know the runid on the client, for easy lookup if on the server later.  This commit adds the runid to the metadata returned to the client and, when detected, prints the runid in the client.

Modified:
    lnt/trunk/lnt/util/ImportData.py

Modified: lnt/trunk/lnt/util/ImportData.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/util/ImportData.py?rev=198454&r1=198453&r2=198454&view=diff
==============================================================================
--- lnt/trunk/lnt/util/ImportData.py (original)
+++ lnt/trunk/lnt/util/ImportData.py Fri Jan  3 16:50:34 2014
@@ -86,6 +86,9 @@ def import_and_report(config, db_name, d
     if not success:
         # Record the original run this is a duplicate of.
         result['original_run'] = run.id
+    else:
+        # Record the new run.id
+        result['runid'] = run.id
 
     reportStartTime = time.time()
     result['report_to_address'] = toAddress
@@ -164,6 +167,9 @@ def print_report_result(result, out, err
         print >>out, "NOTE: This run was not committed!"
         print >>out
 
+    if 'runid' in result:
+        print >>out, "Submitted results as Run %s" % result['runid']
+
     if result['report_to_address']:
         print >>out, "Report emailed to: %r" % result['report_to_address']
         print >>out





More information about the llvm-commits mailing list