blob: d05470603a8347e6fd96d3efc74159b1158553bb [file] [log] [blame]
Mike Frysingerc7f15932013-03-20 13:43:35 -04001#!/usr/bin/python
asharif3af6d112013-02-15 05:15:45 +00002#
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
kbaclawski20082a02013-02-16 02:12:57 +000018
asharif3af6d112013-02-15 05:15:45 +000019from utils import command_executer
asharif3af6d112013-02-15 05:15:45 +000020
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()
raymes85ef5db2013-02-15 05:20:49 +000035 ce.RunCommand("ls; sleep 10000",
asharif3af6d112013-02-15 05:15:45 +000036 machine=os.uname()[1])
37 return 0
38
39
40if __name__ == "__main__":
41 Main(sys.argv)