Mercurial > hg-stable
changeset 43638:ae91e4e4c9b0
tests: rename stopped and started variables to reflect times
In preparation for introducing more variables that will have
similar names.
Differential Revision: https://phab.mercurial-scm.org/D7125
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 16 Oct 2019 21:25:08 -0700 |
parents | 61d7bca16dff |
children | ac140b85aae9 |
files | tests/run-tests.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Wed Oct 30 00:00:21 2019 -0700 +++ b/tests/run-tests.py Wed Oct 16 21:25:08 2019 -0700 @@ -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( (