aboutsummaryrefslogtreecommitdiff
path: root/command_executer_timeout_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 /command_executer_timeout_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 'command_executer_timeout_test.py')
-rwxr-xr-xcommand_executer_timeout_test.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/command_executer_timeout_test.py b/command_executer_timeout_test.py
index 022ce441..c7c94cbf 100755
--- a/command_executer_timeout_test.py
+++ b/command_executer_timeout_test.py
@@ -2,7 +2,7 @@
#
# Copyright 2010 Google Inc. All Rights Reserved.
-__author__ = "asharif@google.com (Ahmad Sharif)"
+__author__ = 'asharif@google.com (Ahmad Sharif)'
import optparse
import os
@@ -13,19 +13,20 @@ 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()
options = parser.parse_args(argv)[0]
- command = "sleep 1000"
+ command = 'sleep 1000'
ce = command_executer.GetCommandExecuter()
ce.RunCommand(command, command_timeout=1)
return 0
-if __name__ == "__main__":
+if __name__ == '__main__':
Main(sys.argv)