| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |