| OLD | NEW |
| 1 import json | 1 import json |
| 2 | 2 |
| 3 from slave import recipe_test_api | 3 from recipe_engine import recipe_test_api |
| 4 | 4 |
| 5 from .util import GTestResults, TestResults | 5 from .util import GTestResults, TestResults |
| 6 | 6 |
| 7 class TestUtilsTestApi(recipe_test_api.RecipeTestApi): | 7 class TestUtilsTestApi(recipe_test_api.RecipeTestApi): |
| 8 @recipe_test_api.placeholder_step_data | 8 @recipe_test_api.placeholder_step_data |
| 9 def test_results(self, test_results, retcode=None): | 9 def test_results(self, test_results, retcode=None): |
| 10 return self.m.json.output(test_results.as_jsonish(), retcode) | 10 return self.m.json.output(test_results.as_jsonish(), retcode) |
| 11 | 11 |
| 12 def canned_test_output(self, passing, minimal=False, passes=9001, | 12 def canned_test_output(self, passing, minimal=False, passes=9001, |
| 13 num_additional_failures=0, | 13 num_additional_failures=0, |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 } | 124 } |
| 125 | 125 |
| 126 swarming_path = '0\\results.json' if is_win else '0/results.json' | 126 swarming_path = '0\\results.json' if is_win else '0/results.json' |
| 127 results_path = swarming_path if swarming else 'results.json' | 127 results_path = swarming_path if swarming else 'results.json' |
| 128 files_dict = { | 128 files_dict = { |
| 129 results_path: json.dumps(jsonish_results), | 129 results_path: json.dumps(jsonish_results), |
| 130 'summary.json': '{}' | 130 'summary.json': '{}' |
| 131 } | 131 } |
| 132 return self.m.raw_io.output_dir(files_dict) | 132 return self.m.raw_io.output_dir(files_dict) |
| 133 | 133 |
| OLD | NEW |