Index: testing/legion/examples/hello_world/client_test.py |
diff --git a/testing/legion/examples/hello_world/client_test.py b/testing/legion/examples/hello_world/client_test.py |
new file mode 100755 |
index 0000000000000000000000000000000000000000..267abce6a5e9bd1c4b812282e8a3573b9dc24fd0 |
--- /dev/null |
+++ b/testing/legion/examples/hello_world/client_test.py |
@@ -0,0 +1,18 @@ |
+#!/usr/bin/env python |
+# Copyright 2015 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+"""A simple client test module.""" |
+import argparse |
+import os |
+ |
+ |
+def main(): |
+ parser = argparse.ArgumentParser() |
+ parser.add_argument('name') |
+ args = parser.parse_args() |
+ print 'Hello world from', args.name |
+ |
Marc-Antoine Ruel (Google)
2015/01/30 18:00:21
return 0
(I just like to do this for consistency)
Mike Meade
2015/01/30 21:04:04
Done.
|
+ |
+if __name__ == '__main__': |
+ main() |
Marc-Antoine Ruel (Google)
2015/01/30 18:00:21
sys.exit(main())
Mike Meade
2015/01/30 21:04:04
Done.
|