aboutsummaryrefslogtreecommitdiff
path: root/crosperf/results_report.py
diff options
context:
space:
mode:
authorBob Haarman <inglorion@chromium.org>2020-09-19 00:00:06 +0000
committerBob Haarman <inglorion@chromium.org>2020-09-25 21:42:42 +0000
commit8223d16e040748ad6a91a87f3ce1cfc13db37f4b (patch)
treeb58dc769d183b3af7c76e6a6cec2800343d4e4f9 /crosperf/results_report.py
parent4f7eb71f9fa78f8710e1deb57d441f51fa74af3b (diff)
downloadtoolchain-utils-8223d16e040748ad6a91a87f3ce1cfc13db37f4b.tar.gz
fix formatting/lint issues pointed out by repohooks
Previous changes resulted in some complaints about formatting and Python 3 compatibility from the repo hooks. This change fixes those. BUG=None TEST=repo upload --cbr . # check that it no longer complains Change-Id: I99cc51dcb8d499d59b7b47817f4cef8fa6ba5059 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2419831 Tested-by: Bob Haarman <inglorion@chromium.org> Reviewed-by: Manoj Gupta (OoO) <manojgupta@chromium.org>
Diffstat (limited to 'crosperf/results_report.py')
-rw-r--r--crosperf/results_report.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/crosperf/results_report.py b/crosperf/results_report.py
index ff8c119d..dc80b53b 100644
--- a/crosperf/results_report.py
+++ b/crosperf/results_report.py
@@ -418,8 +418,8 @@ class TextResultsReport(ResultsReport):
cpu_info = experiment.machine_manager.GetAllCPUInfo(experiment.labels)
sections.append(self._MakeSection('CPUInfo', cpu_info))
- totaltime = (
- time.time() - experiment.start_time) if experiment.start_time else 0
+ totaltime = (time.time() -
+ experiment.start_time) if experiment.start_time else 0
totaltime_str = 'Total experiment time:\n%d min' % (totaltime // 60)
cooldown_waittime_list = ['Cooldown wait time:']
# When running experiment on multiple DUTs cooldown wait time may vary
@@ -430,8 +430,9 @@ class TextResultsReport(ResultsReport):
cooldown_waittime_list.append('DUT %s: %d min' % (dut, waittime // 60))
cooldown_waittime_str = '\n'.join(cooldown_waittime_list)
sections.append(
- self._MakeSection('Duration', '\n\n'.join(
- [totaltime_str, cooldown_waittime_str])))
+ self._MakeSection('Duration',
+ '\n\n'.join([totaltime_str,
+ cooldown_waittime_str])))
return '\n'.join(sections)