Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: testing/legion/examples/hello_world/client_test.py

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 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 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """A simple client test module. 6 """A simple client test module.
7 7
8 This module is invoked by the host by calling the client controller's 8 This module is invoked by the host by calling the client controller's
9 Subprocess RPC method. The name is passed in as a required argument on the 9 Subprocess RPC method. The name is passed in as a required argument on the
10 command line. 10 command line.
11 """ 11 """
12 12
13 import argparse 13 import argparse
14 import os 14 import os
15 import sys 15 import sys
16 16
17 17
18 def main(): 18 def main():
19 parser = argparse.ArgumentParser() 19 parser = argparse.ArgumentParser()
20 parser.add_argument('name') 20 parser.add_argument('name')
21 args = parser.parse_args() 21 args = parser.parse_args()
22 print 'Hello world from', args.name 22 print 'Hello world from', args.name
23 return 0 23 return 0
24 24
25 25
26 if __name__ == '__main__': 26 if __name__ == '__main__':
27 sys.exit(main()) 27 sys.exit(main())
OLDNEW
« no previous file with comments | « testing/legion/examples/hello_world/client_test.isolate ('k') | testing/legion/examples/hello_world/host_test.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698