OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 """A simple client test module. |
| 6 |
| 7 This module is invoked by the host by calling the client controller's |
| 8 Subprocess RPC method. The name is passed in as a required argument on the |
| 9 command line. |
| 10 """ |
| 11 |
| 12 import argparse |
| 13 import os |
| 14 import sys |
| 15 |
| 16 |
| 17 def main(): |
| 18 parser = argparse.ArgumentParser() |
| 19 parser.add_argument('name') |
| 20 args = parser.parse_args() |
| 21 print 'Hello world from', args.name |
| 22 return 0 |
| 23 |
| 24 |
| 25 if __name__ == '__main__': |
| 26 sys.exit(main()) |
OLD | NEW |