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

Unified Diff: build/android/run_tests.py

Issue 12033066: [Android] Fix error in sharding of gtests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/run_tests.py
diff --git a/build/android/run_tests.py b/build/android/run_tests.py
index 5c80bf3a04ad1dfcd3bd6d787597f85311ea02c4..020814c956084d59e3f62c35cf9bf47f790e1277 100755
--- a/build/android/run_tests.py
+++ b/build/android/run_tests.py
@@ -176,8 +176,7 @@ class TestSharder(BaseTestSharder):
A SingleTestRunner object.
"""
device_num = len(self.attached_devices)
- shard_size = (len(self.tests) + device_num - 1) / device_num
- shard_test_list = self.tests[index * shard_size : (index + 1) * shard_size]
+ shard_test_list = self.tests[index::device_num]
test_filter = ':'.join(shard_test_list) + self.gtest_filter
return SingleTestRunner(
device,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698