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

Side by Side Diff: mojo/tools/mopy_internal/mojo_python_tests_runner.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, 11 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/mopy_internal/memoize.py ('k') | mojo/tools/mopy_internal/perf_data_uploader.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 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import argparse 5 import argparse
6 import os 6 import os
7 import sys 7 import sys
8 import unittest 8 import unittest
9 9
10 import add_sdk_tools_to_path
10 import mopy.paths 11 import mopy.paths
11 12
12 13
13 class MojoPythonTestRunner(object): 14 class MojoPythonTestRunner(object):
14 """Helper class to run python tests on the bots.""" 15 """Helper class to run python tests on the bots."""
15 16
16 def __init__(self, test_dir): 17 def __init__(self, test_dir):
17 self._test_dir = test_dir 18 self._test_dir = test_dir
18 19
19 def run(self): 20 def run(self):
(...skipping 23 matching lines...) Expand all
43 result = runner.run(suite) 44 result = runner.run(suite)
44 return 0 if result.wasSuccessful() else 1 45 return 0 if result.wasSuccessful() else 1
45 46
46 def add_custom_commandline_options(self, parser): 47 def add_custom_commandline_options(self, parser):
47 """Allow to add custom option to the runner script.""" 48 """Allow to add custom option to the runner script."""
48 pass 49 pass
49 50
50 def apply_customization(self, args): 51 def apply_customization(self, args):
51 """Allow to apply any customization to the runner.""" 52 """Allow to apply any customization to the runner."""
52 pass 53 pass
OLDNEW
« no previous file with comments | « mojo/tools/mopy_internal/memoize.py ('k') | mojo/tools/mopy_internal/perf_data_uploader.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698