[LNT] r198466 - Don't pass run.id back with commit=False

Chris Matthews cmatthews5 at apple.com
Fri Jan 3 16:46:16 PST 2014


Author: cmatthews
Date: Fri Jan  3 18:46:16 2014
New Revision: 198466

URL: http://llvm.org/viewvc/llvm-project?rev=198466&view=rev
Log:
Don't pass run.id back with commit=False

When we don't commit runs, don't pass back the run.id, because the run won't exist.

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=198466&r1=198465&r2=198466&view=diff
==============================================================================
--- lnt/trunk/lnt/util/ImportData.py (original)
+++ lnt/trunk/lnt/util/ImportData.py Fri Jan  3 18:46:16 2014
@@ -88,8 +88,9 @@ def import_and_report(config, db_name, d
         # Record the original run this is a duplicate of.
         result['original_run'] = run.id
     else:
-        # Record the new run.id.
-        result['runid'] = run.id
+        if commit:
+            # Record the new run.id.
+            result['runid'] = run.id
 
     result['report_to_address'] = toAddress
     if config:





More information about the llvm-commits mailing list