From f81680c018729fd4499e1e200d04b48c4b90127c Mon Sep 17 00:00:00 2001 From: Luis Lozano Date: Fri, 15 Mar 2013 14:44:13 -0700 Subject: 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 Reviewed-by: Yunlian Jiang Commit-Queue: Luis Lozano --- remote_kill_test.py | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 remote_kill_test.py (limited to 'remote_kill_test.py') 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) -- cgit v1.2.3