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

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: Fixed nit 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..60fec67b60718721767d945ba2d7c3e8e1ce41e1 100755
--- a/build/android/run_tests.py
+++ b/build/android/run_tests.py
@@ -176,8 +176,8 @@ 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[i::device_num]
+ for i in xrange(device_num)][index]
Isaac (away) 2013/01/24 00:01:03 Would shard_test_list = self.tests[index::device_
frankf 2013/01/24 00:19:12 Done.
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