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

Unified Diff: scripts/slave/recipe_modules/webrtc/api.py

Issue 2438993002: WebRTC: Make WebRTC's Test more similar to Chromium's GTestTest (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/webrtc/steps.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/webrtc/api.py
diff --git a/scripts/slave/recipe_modules/webrtc/api.py b/scripts/slave/recipe_modules/webrtc/api.py
index e4f17f90f7af72d3d51767a137df635752d91d02..e8d738820ecb91dbfb14570adc779c574920e8e2 100644
--- a/scripts/slave/recipe_modules/webrtc/api.py
+++ b/scripts/slave/recipe_modules/webrtc/api.py
@@ -26,25 +26,25 @@ class WebRTCApi(recipe_api.RecipeApi):
'common_audio_unittests': {},
'common_video_unittests': {},
'modules_tests': {
- 'shards': 2,
+ 'swarming_shards': 2,
},
'modules_unittests': {
- 'shards': 6,
+ 'swarming_shards': 6,
},
'peerconnection_unittests': {
- 'shards': 4,
+ 'swarming_shards': 4,
},
'rtc_media_unittests': {},
'rtc_pc_unittests': {},
'rtc_stats_unittests': {},
'rtc_unittests': {
- 'shards': 6,
+ 'swarming_shards': 6,
},
'system_wrappers_unittests': {},
'test_support_unittests': {},
'tools_unittests': {},
'video_engine_tests': {
- 'shards': 4,
+ 'swarming_shards': 4,
},
'voice_engine_unittests': {},
'webrtc_nonparallel_tests': {
@@ -53,31 +53,31 @@ class WebRTCApi(recipe_api.RecipeApi):
'xmllite_xmpp_unittests': {},
})
- ANDROID_DEVICE_TESTS = freeze({
- 'audio_decoder_unittests': {},
- 'common_audio_unittests': {},
- 'common_video_unittests': {},
- 'modules_tests': {},
- 'modules_unittests': {},
- 'peerconnection_unittests': {},
- 'rtc_stats_unittests': {},
- 'rtc_unittests': {},
- 'system_wrappers_unittests': {},
- 'test_support_unittests': {},
- 'tools_unittests': {},
- 'video_engine_tests': {},
- 'voice_engine_unittests': {},
- 'webrtc_nonparallel_tests': {},
- })
-
- ANDROID_INSTRUMENTATION_TESTS = freeze({
- 'AppRTCMobileTest': {},
- 'libjingle_peerconnection_android_unittest': {},
- })
-
- ANDROID_JUNIT_TESTS = freeze({
- 'android_junit_tests': {},
- })
+ ANDROID_DEVICE_TESTS = (
+ 'audio_decoder_unittests',
+ 'common_audio_unittests',
+ 'common_video_unittests',
+ 'modules_tests',
+ 'modules_unittests',
+ 'peerconnection_unittests',
+ 'rtc_stats_unittests',
+ 'rtc_unittests',
+ 'system_wrappers_unittests',
+ 'test_support_unittests',
+ 'tools_unittests',
+ 'video_engine_tests',
+ 'voice_engine_unittests',
+ 'webrtc_nonparallel_tests',
+ )
+
+ ANDROID_INSTRUMENTATION_TESTS = (
+ 'AppRTCMobileTest',
+ 'libjingle_peerconnection_android_unittest',
+ )
+
+ ANDROID_JUNIT_TESTS = (
+ 'android_junit_tests',
+ )
DASHBOARD_UPLOAD_URL = 'https://chromeperf.appspot.com'
@@ -148,13 +148,11 @@ class WebRTCApi(recipe_api.RecipeApi):
self.c.enable_swarming = self.bot_config.get('enable_swarming')
if self.c.use_isolate:
self.m.isolate.set_isolate_environment(self.m.chromium.c)
- self._isolated_targets = []
if self.c.TEST_SUITE == 'webrtc':
- self._isolated_targets += self.NORMAL_TESTS.keys()
- if self.c.TEST_SUITE == 'android_swarming':
- self._isolated_targets += (self.ANDROID_JUNIT_TESTS.keys() +
- self.ANDROID_DEVICE_TESTS.keys() +
- self.ANDROID_INSTRUMENTATION_TESTS.keys())
+ self._isolated_targets = (self.NORMAL_TESTS.keys())
+ elif self.c.TEST_SUITE == 'android_swarming':
+ self._isolated_targets = (self.ANDROID_DEVICE_TESTS +
+ self.ANDROID_INSTRUMENTATION_TESTS)
self._isolated_targets = sorted(self._isolated_targets)
if not self._isolated_targets: # pragma: no cover
raise self.m.step.StepFailure('Isolation and swarming are only '
@@ -235,8 +233,14 @@ class WebRTCApi(recipe_api.RecipeApi):
self.m.chromium_android.common_tests_setup_steps()
for test in tests:
+ test.pre_run(self, suffix='')
kjellander_chromium 2016/10/21 11:04:07 https://cs.chromium.org/chromium/build/scripts/sla
ehmaldonado_chromium 2016/10/21 13:12:49 Good point. This doesn't change the behavior we ha
+
+ for test in tests:
test.run(self, suffix='')
+ for test in tests:
+ test.post_run(self, suffix='')
+
if run_android_device_steps:
self.m.chromium_android.shutdown_device_monitor()
self.m.chromium_android.logcat_dump(
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/webrtc/steps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698