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

Side by Side Diff: mojo/tools/android_mojo_shell.py

Issue 878933003: Move the apptest runner and parts of mopy to the public SDK. (Closed) Base URL: https://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
« no previous file with comments | « mojo/tools/add_sdk_tools_to_path.py ('k') | mojo/tools/apptest_runner.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 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 import argparse 6 import argparse
7 import logging 7 import logging
8 import sys 8 import sys
9 9
10 import add_sdk_tools_to_path
11 from mopy import android
10 from mopy.config import Config 12 from mopy.config import Config
11 from mopy.paths import Paths 13 from mopy.paths import Paths
12 from mopy import android 14
13 15
14 USAGE = ("android_mojo_shell.py " 16 USAGE = ("android_mojo_shell.py "
15 "[--args-for=<mojo-app>] " 17 "[--args-for=<mojo-app>] "
16 "[--content-handlers=<handlers>] " 18 "[--content-handlers=<handlers>] "
17 "[--enable-external-applications] " 19 "[--enable-external-applications] "
18 "[--disable-cache] " 20 "[--disable-cache] "
19 "[--enable-multiprocess] " 21 "[--enable-multiprocess] "
20 "[--url-mappings=from1=to1,from2=to2] " 22 "[--url-mappings=from1=to1,from2=to2] "
21 "[<mojo-app>] " 23 "[<mojo-app>] "
22 """ 24 """
(...skipping 23 matching lines...) Expand all
46 context = android.PrepareShellRun(config) 48 context = android.PrepareShellRun(config)
47 android.CleanLogs(context) 49 android.CleanLogs(context)
48 p = android.ShowLogs() 50 p = android.ShowLogs()
49 android.StartShell(context, args, sys.stdout, p.terminate) 51 android.StartShell(context, args, sys.stdout, p.terminate)
50 52
51 return 0 53 return 0
52 54
53 55
54 if __name__ == "__main__": 56 if __name__ == "__main__":
55 sys.exit(main()) 57 sys.exit(main())
OLDNEW
« no previous file with comments | « mojo/tools/add_sdk_tools_to_path.py ('k') | mojo/tools/apptest_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698