aboutsummaryrefslogtreecommitdiff
path: root/crosperf/crosperf_test.py
diff options
context:
space:
mode:
authorLuis Lozano <llozano@chromium.org>2015-12-15 13:49:30 -0800
committerLuis Lozano <llozano@chromium.org>2015-12-16 17:36:06 +0000
commitf2a3ef46f75d2196a93d3ed27f4d1fcf22b54fbe (patch)
tree185d243c7eed7c7a0db6f0e640746cadc1479ea9 /crosperf/crosperf_test.py
parent2a66f70fef907c1cb15229cb58e5129cb620ac98 (diff)
downloadtoolchain-utils-f2a3ef46f75d2196a93d3ed27f4d1fcf22b54fbe.tar.gz
Run pyformat on all the toolchain-utils files.
This gets rid of a lot of lint issues. Ran by doing this: for f in *.py; do echo -n "$f " ; if [ -x $f ]; then pyformat -i --remove_trailing_comma --yapf --force_quote_type=double $f ; else pyformat -i --remove_shebang --remove_trailing_comma --yapf --force_quote_type=double $f ; fi ; done BUG=chromium:567921 TEST=Ran simple crosperf run. Change-Id: I59778835fdaa5f706d2e1765924389f9e97433d1 Reviewed-on: https://chrome-internal-review.googlesource.com/242031 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Luis Lozano <llozano@chromium.org> Tested-by: Luis Lozano <llozano@chromium.org> Reviewed-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'crosperf/crosperf_test.py')
-rwxr-xr-xcrosperf/crosperf_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/crosperf/crosperf_test.py b/crosperf/crosperf_test.py
index 0c50e7b5..09aefcb6 100755
--- a/crosperf/crosperf_test.py
+++ b/crosperf/crosperf_test.py
@@ -8,7 +8,6 @@ import unittest
import crosperf
from utils.file_utils import FileUtils
-
EXPERIMENT_FILE_1 = """
board: x86-alex
remote: chromeos-alex3
@@ -28,13 +27,14 @@ EXPERIMENT_FILE_1 = """
class CrosPerfTest(unittest.TestCase):
+
def testDryRun(self):
filehandle, filename = tempfile.mkstemp()
os.write(filehandle, EXPERIMENT_FILE_1)
- crosperf.Main(["", filename, "--dry_run"])
+ crosperf.Main(['', filename, '--dry_run'])
os.remove(filename)
-if __name__ == "__main__":
+if __name__ == '__main__':
FileUtils.Configure(True)
unittest.main()