• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env 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(
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
43if __name__ == '__main__':
44  Main(sys.argv[1:])
45