aboutsummaryrefslogtreecommitdiff
path: root/crosperf
diff options
context:
space:
mode:
authorRahul Chaudhry <rahulchaudhry@chromium.org>2015-12-30 18:16:07 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-01-04 20:39:25 +0000
commit3ebd06129a2d8cb9ff2301fffca77a9980989342 (patch)
treede095883f5b3cdb43a30ef44f3565d07b29f674e /crosperf
parentb2d3dc7fbc760d1ea72d726e2316649c52b95493 (diff)
downloadtoolchain-utils-3ebd06129a2d8cb9ff2301fffca77a9980989342.tar.gz
toolchain-utils: fix docstring-leading-whitespace lint warnings.
BUG=chromium:570458 TEST='crosperf/run_tests.sh' passes. Change-Id: I5f8cb5a89faa8d7f17d7b20a2198317a6f89b6d1 Reviewed-on: https://chrome-internal-review.googlesource.com/243455 Commit-Ready: Rahul Chaudhry <rahulchaudhry@google.com> Tested-by: Rahul Chaudhry <rahulchaudhry@google.com> Reviewed-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'crosperf')
-rw-r--r--crosperf/suite_runner.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/crosperf/suite_runner.py b/crosperf/suite_runner.py
index b76f85e9..ae502bde 100644
--- a/crosperf/suite_runner.py
+++ b/crosperf/suite_runner.py
@@ -42,8 +42,7 @@ def GetProfilerArgs(profiler_args):
class SuiteRunner(object):
- """ This defines the interface from crosperf to test script.
- """
+ """This defines the interface from crosperf to test script."""
def __init__(self,
logger_to_use=None,
@@ -82,8 +81,7 @@ class SuiteRunner(object):
return ret_tup
def GetHighestStaticFrequency(self, machine_name, chromeos_root):
- """ Gets the highest static frequency for the specified machine
- """
+ """Gets the highest static frequency for the specified machine."""
get_avail_freqs = ('cd /sys/devices/system/cpu/cpu0/cpufreq/; '
'if [[ -e scaling_available_frequencies ]]; then '
' cat scaling_available_frequencies; '
@@ -112,8 +110,7 @@ class SuiteRunner(object):
return freqs[0]
def PinGovernorExecutionFrequencies(self, machine_name, chromeos_root):
- """ Set min and max frequencies to max static frequency
- """
+ """Set min and max frequencies to max static frequency."""
highest_freq = self.GetHighestStaticFrequency(machine_name, chromeos_root)
BASH_FOR = 'for f in {list}; do {body}; done'
CPUFREQ_DIRS = '/sys/devices/system/cpu/cpu*/cpufreq/'