diff options
author | Luis Lozano <llozano@chromium.org> | 2015-12-15 13:49:30 -0800 |
---|---|---|
committer | Luis Lozano <llozano@chromium.org> | 2015-12-16 17:36:06 +0000 |
commit | f2a3ef46f75d2196a93d3ed27f4d1fcf22b54fbe (patch) | |
tree | 185d243c7eed7c7a0db6f0e640746cadc1479ea9 /remote_kill_test.py | |
parent | 2a66f70fef907c1cb15229cb58e5129cb620ac98 (diff) | |
download | toolchain-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 'remote_kill_test.py')
-rwxr-xr-x | remote_kill_test.py | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/remote_kill_test.py b/remote_kill_test.py index ca1bc5fd..88aaf15d 100755 --- a/remote_kill_test.py +++ b/remote_kill_test.py @@ -1,14 +1,13 @@ #!/usr/bin/python # # Copyright 2010 Google Inc. All Rights Reserved. - """Script to wrap test_that script. Run this script and kill it. Then run ps -ef to see if sleep is still running,. """ -__author__ = "asharif@google.com (Ahmad Sharif)" +__author__ = 'asharif@google.com (Ahmad Sharif)' import optparse import os @@ -20,22 +19,26 @@ from utils import command_executer def Usage(parser, message): - print "ERROR: " + message + print 'ERROR: ' + message parser.print_help() sys.exit(0) + def Main(argv): parser = optparse.OptionParser() - parser.add_option("-c", "--chromeos_root", dest="chromeos_root", - help="ChromeOS root checkout directory") - parser.add_option("-r", "--remote", dest="remote", - help="Remote chromeos device.") + parser.add_option('-c', + '--chromeos_root', + dest='chromeos_root', + help='ChromeOS root checkout directory') + parser.add_option('-r', + '--remote', + dest='remote', + help='Remote chromeos device.') options = parser.parse_args(argv)[0] ce = command_executer.GetCommandExecuter() - ce.RunCommand("ls; sleep 10000", - machine=os.uname()[1]) + ce.RunCommand('ls; sleep 10000', machine=os.uname()[1]) return 0 -if __name__ == "__main__": +if __name__ == '__main__': Main(sys.argv) |