diff options
author | Luis Lozano <llozano@chromium.org> | 2013-03-15 14:44:13 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-03-15 15:51:37 -0700 |
commit | f81680c018729fd4499e1e200d04b48c4b90127c (patch) | |
tree | 940608da8374604b82edfdb2d7df55d065f05d4c /remote_kill_test.py | |
parent | 2296ee0b914aba5bba07becab4ff68884ce9b8a5 (diff) | |
download | toolchain-utils-f81680c018729fd4499e1e200d04b48c4b90127c.tar.gz |
Cleaned up directory after copy of tools from perforce directory
Got rid of stale copies of some tools like "crosperf" and moved all
files under v14 directory (that came from perforce) into the top
directory.
BUG=None
TEST=None
Change-Id: I408d17a36ceb00e74db71403d2351fd466a14f8e
Reviewed-on: https://gerrit-int.chromium.org/33887
Tested-by: Luis Lozano <llozano@chromium.org>
Reviewed-by: Yunlian Jiang <yunlian@google.com>
Commit-Queue: Luis Lozano <llozano@chromium.org>
Diffstat (limited to 'remote_kill_test.py')
-rwxr-xr-x | remote_kill_test.py | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/remote_kill_test.py b/remote_kill_test.py new file mode 100755 index 00000000..e56ef209 --- /dev/null +++ b/remote_kill_test.py @@ -0,0 +1,41 @@ +#!/usr/bin/python2.6 +# +# Copyright 2010 Google Inc. All Rights Reserved. + +"""Script to wrap run_remote_tests.sh script. + +Run this script and kill it. Then run ps -ef to see if sleep +is still running,. +""" + +__author__ = "asharif@google.com (Ahmad Sharif)" + +import optparse +import os +import re +import sys +import subprocess + +from utils import command_executer + + +def Usage(parser, 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.") + options = parser.parse_args(argv)[0] + ce = command_executer.GetCommandExecuter() + ce.RunCommand("ls; sleep 10000", + machine=os.uname()[1]) + return 0 + + +if __name__ == "__main__": + Main(sys.argv) |