aboutsummaryrefslogtreecommitdiffstats
path: root/tests/power
diff options
context:
space:
mode:
authorKagami Sascha Rosylight <saschanaz@outlook.com>2020-06-21 03:34:22 +0200
committerKagami Sascha Rosylight <saschanaz@outlook.com>2020-06-21 03:34:32 +0200
commitd01648d637a350af0cb81470f956cc5edd18a9a4 (patch)
tree348d75fe9d3e63fd4bb8ff2506db6606a12e56fd /tests/power
parentc953931621679f37fa31a1dc5f00ebb9f0c204e0 (diff)
downloadservo-d01648d637a350af0cb81470f956cc5edd18a9a4.tar.gz
servo-d01648d637a350af0cb81470f956cc5edd18a9a4.zip
Fix remaining flake8 warnings
Diffstat (limited to 'tests/power')
-rwxr-xr-xtests/power/PowerMeasure.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/power/PowerMeasure.py b/tests/power/PowerMeasure.py
index 6c49ce639af..83b177bc618 100755
--- a/tests/power/PowerMeasure.py
+++ b/tests/power/PowerMeasure.py
@@ -134,10 +134,10 @@ def PowerParser(OutputDir, LayoutThreads):
TotalPower = PowerGen / float(ExperimentNum - 1)
TotalTime = TimeGen / float(ExperimentNum - 1)
- ResultFile.write(str(layoutT) + " , " + str(TotalPower) + " , " +
- str(MaxPower) + " , " + str(MinPower) + " , " +
- str(TotalTime) + " , " + str(MaxTime) + " , " +
- str(MinTime) + "\n")
+ ResultFile.write(str(layoutT) + " , " + str(TotalPower) + " , "
+ + str(MaxPower) + " , " + str(MinPower) + " , "
+ + str(TotalTime) + " , " + str(MaxTime) + " , "
+ + str(MinTime) + "\n")
ResultFile.close()
Opener = ResultFile = open(ResultTable, "r")
for line in Opener:
@@ -180,5 +180,6 @@ def main():
PowerCollector(OutputDir, Benchmarks, LayoutThreads, Renderer)
PowerParser(OutputDir, LayoutThreads)
+
if __name__ == "__main__":
main()