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