Patchwork D7125: tests: rename stopped and started variables to reflect times

login
register
mail settings
Submitter phabricator
Date Nov. 11, 2019, 12:35 p.m.
Message ID <a58e38f4025c0adc654d23df59255130@localhost.localdomain>
Download mbox | patch
Permalink /patch/43114/
State Not Applicable
Headers show

Comments

phabricator - Nov. 11, 2019, 12:35 p.m.
Closed by commit rHGae91e4e4c9b0: tests: rename stopped and started variables to reflect times (authored by indygreg).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7125?vs=17324&id=18012

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7125/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7125

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -2247,17 +2247,17 @@ 
         # child's processes along with real elapsed time taken by a process.
         # This module has one limitation. It can only work for Linux user
         # and not for Windows.
-        test.started = os.times()
+        test.started_times = os.times()
         if self._firststarttime is None:  # thread racy but irrelevant
-            self._firststarttime = test.started[4]
+            self._firststarttime = test.started_times[4]
 
     def stopTest(self, test, interrupted=False):
         super(TestResult, self).stopTest(test)
 
-        test.stopped = os.times()
-
-        starttime = test.started
-        endtime = test.stopped
+        test.stopped_times = os.times()
+
+        starttime = test.started_times
+        endtime = test.stopped_times
         origin = self._firststarttime
         self.times.append(
             (