remote_kill_test.py revision c7f1593f9af3ea1b9264b37628c36f3a70e1749a
1#!/usr/bin/python 2# 3# Copyright 2010 Google Inc. All Rights Reserved. 4 5"""Script to wrap run_remote_tests.sh script. 6 7Run this script and kill it. Then run ps -ef to see if sleep 8is still running,. 9""" 10 11__author__ = "asharif@google.com (Ahmad Sharif)" 12 13import optparse 14import os 15import re 16import sys 17import subprocess 18 19from utils import command_executer 20 21 22def Usage(parser, message): 23 print "ERROR: " + message 24 parser.print_help() 25 sys.exit(0) 26 27def Main(argv): 28 parser = optparse.OptionParser() 29 parser.add_option("-c", "--chromeos_root", dest="chromeos_root", 30 help="ChromeOS root checkout directory") 31 parser.add_option("-r", "--remote", dest="remote", 32 help="Remote chromeos device.") 33 options = parser.parse_args(argv)[0] 34 ce = command_executer.GetCommandExecuter() 35 ce.RunCommand("ls; sleep 10000", 36 machine=os.uname()[1]) 37 return 0 38 39 40if __name__ == "__main__": 41 Main(sys.argv) 42