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