| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 os | 5 import os |
| 6 import re | 6 import re |
| 7 import urllib | 7 import urllib |
| 8 | 8 |
| 9 from infra.libs.infra_types import freeze | 9 from infra.libs.infra_types import freeze |
| 10 from slave import recipe_api | 10 from recipe_engine import recipe_api |
| 11 | 11 |
| 12 INSTRUMENTATION_TESTS = freeze([ | 12 INSTRUMENTATION_TESTS = freeze([ |
| 13 { | 13 { |
| 14 'test': 'AndroidWebViewTest', | 14 'test': 'AndroidWebViewTest', |
| 15 'gyp_target': 'android_webview_test_apk', | 15 'gyp_target': 'android_webview_test_apk', |
| 16 'kwargs': { | 16 'kwargs': { |
| 17 'install_apk': { | 17 'install_apk': { |
| 18 'package': 'org.chromium.android_webview.shell', | 18 'package': 'org.chromium.android_webview.shell', |
| 19 'apk': 'AndroidWebView.apk' | 19 'apk': 'AndroidWebView.apk' |
| 20 }, | 20 }, |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 except self.m.step.StepFailure as f: | 760 except self.m.step.StepFailure as f: |
| 761 step_result = f.result | 761 step_result = f.result |
| 762 raise | 762 raise |
| 763 finally: | 763 finally: |
| 764 if (step_result.retcode == EXIT_CODES['error']): | 764 if (step_result.retcode == EXIT_CODES['error']): |
| 765 step_result.presentation.status = self.m.step.FAILURE | 765 step_result.presentation.status = self.m.step.FAILURE |
| 766 elif (step_result.retcode == EXIT_CODES['infra']): | 766 elif (step_result.retcode == EXIT_CODES['infra']): |
| 767 step_result.presentation.status = self.m.step.EXCEPTION | 767 step_result.presentation.status = self.m.step.EXCEPTION |
| 768 elif (step_result.retcode == EXIT_CODES['warning']): | 768 elif (step_result.retcode == EXIT_CODES['warning']): |
| 769 step_result.presentation.status = self.m.step.WARNING | 769 step_result.presentation.status = self.m.step.WARNING |
| OLD | NEW |