[LNT] r311961 - Get rid of commit parameter: it was not used

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 28 17:17:07 PDT 2017


Author: cmatthews
Date: Mon Aug 28 17:17:07 2017
New Revision: 311961

URL: http://llvm.org/viewvc/llvm-project?rev=311961&view=rev
Log:
Get rid of commit parameter: it was not used

Modified:
    lnt/trunk/lnt/server/db/testsuitedb.py
    lnt/trunk/lnt/util/ImportData.py

Modified: lnt/trunk/lnt/server/db/testsuitedb.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/testsuitedb.py?rev=311961&r1=311960&r2=311961&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/testsuitedb.py (original)
+++ lnt/trunk/lnt/server/db/testsuitedb.py Mon Aug 28 17:17:07 2017
@@ -971,7 +971,7 @@ class TestSuiteDB(object):
         self.add(run)
         return run
 
-    def _importSampleValues(self, tests_data, run, commit, config):
+    def _importSampleValues(self, tests_data, run, config):
         # Load a map of all the tests, which we will extend when we find tests
         # that need to be added.
         # Downcast to str, so we match on MySQL.
@@ -1010,8 +1010,7 @@ class TestSuiteDB(object):
                     else:
                         sample.set_field(field, value)
 
-    def importDataFromDict(self, data, commit, config, updateMachine,
-                           mergeRun):
+    def importDataFromDict(self, data, config, updateMachine, mergeRun):
         """
         importDataFromDict(data, commit, config, updateMachine, mergeRun)
             -> Run  (or throws ValueError exception)
@@ -1023,7 +1022,7 @@ class TestSuiteDB(object):
         """
         machine = self._getOrCreateMachine(data['machine'], updateMachine)
         run = self._getOrCreateRun(data['run'], machine, mergeRun)
-        self._importSampleValues(data['tests'], run, commit, config)
+        self._importSampleValues(data['tests'], run, config)
         return run
 
     # Simple query support (mostly used by templates)

Modified: lnt/trunk/lnt/util/ImportData.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/util/ImportData.py?rev=311961&r1=311960&r2=311961&view=diff
==============================================================================
--- lnt/trunk/lnt/util/ImportData.py (original)
+++ lnt/trunk/lnt/util/ImportData.py Mon Aug 28 17:17:07 2017
@@ -91,9 +91,7 @@ def import_and_report(config, db_name, d
                                (data_schema, ts_name))
             return result
 
-        run = ts.importDataFromDict(data, commit, config=db_config,
-                                    updateMachine=updateMachine,
-                                    mergeRun=mergeRun)
+        run = ts.importDataFromDict(data, config=db_config, updateMachine=updateMachine, mergeRun=mergeRun)
     except KeyboardInterrupt:
         raise
     except Exception as e:




More information about the llvm-commits mailing list