| Index: mojo/tools/mojob.py
|
| diff --git a/mojo/tools/mojob.py b/mojo/tools/mojob.py
|
| index 03f48a80de90b66d69164521e427ab58ce5fc6ea..8c6043af592348fa3367534c851861568fdf9ecd 100755
|
| --- a/mojo/tools/mojob.py
|
| +++ b/mojo/tools/mojob.py
|
| @@ -103,18 +103,25 @@ def run_unittests(args):
|
| out_dir = get_out_dir(args)
|
| print 'Running unit tests in %s ...' % out_dir
|
| command = ['python']
|
| - if platform.system() == 'Linux':
|
| + if platform.system() == 'Linux' and not args.android:
|
| command.append('./testing/xvfb.py')
|
| command.append(out_dir)
|
|
|
| command.append(os.path.join('mojo', 'tools', 'test_runner.py'))
|
| - command.append(os.path.join('mojo', 'tools', 'data', 'unittests'))
|
| + if args.android:
|
| + command.append('--android')
|
| + command.append(os.path.join('mojo', 'tools', 'data', 'android_unittests'))
|
| + else:
|
| + command.append(os.path.join('mojo', 'tools', 'data', 'unittests'))
|
| command.append(out_dir)
|
| command.append('mojob_test_successes')
|
| return subprocess.call(command)
|
|
|
| def run_apptests(args):
|
| out_dir = get_out_dir(args)
|
| + if args.android:
|
| + return 0
|
| +
|
| print 'Running application tests in %s ...' % out_dir
|
| command = ['python']
|
| if platform.system() == 'Linux':
|
| @@ -128,7 +135,7 @@ def run_apptests(args):
|
|
|
| def run_skytests(args):
|
| out_dir = get_out_dir(args)
|
| - if platform.system() != 'Linux':
|
| + if platform.system() != 'Linux' or args.android:
|
| return 0
|
|
|
| command = []
|
| @@ -172,7 +179,7 @@ def run_pytests(args):
|
| if exit_code:
|
| return exit_code
|
|
|
| - if platform.system() != 'Linux':
|
| + if platform.system() != 'Linux' or args.android:
|
| print ('Python bindings tests are only supported on Linux.')
|
| return
|
|
|
|
|