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

Unified Diff: build/android/pylib/instrumentation/test_jar.py

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
Index: build/android/pylib/instrumentation/test_jar.py
diff --git a/build/android/pylib/instrumentation/test_jar.py b/build/android/pylib/instrumentation/test_jar.py
index 4473810e6202edddbcf384ecff2cb4dbe98a1904..c3faef31f70f026c23f183def272d9354cf9c99e 100644
--- a/build/android/pylib/instrumentation/test_jar.py
+++ b/build/android/pylib/instrumentation/test_jar.py
@@ -215,12 +215,10 @@ class TestJar(object):
# Filter out any tests with SDK level requirements that don't match the set
# of attached devices.
- sdk_versions = [
- int(v) for v in
- device_utils.DeviceUtils.parallel().GetProp(
- 'ro.build.version.sdk').pGet(None)]
+ devices = device_utils.DeviceUtils.parallel()
+ min_sdk_version = min(devices.build_version_sdk.pGet(None))
tests = [t for t in tests
- if self._IsTestValidForSdkRange(t, min(sdk_versions))]
+ if self._IsTestValidForSdkRange(t, min_sdk_version)]
return tests
« no previous file with comments | « build/android/pylib/gtest/gtest_test_instance.py ('k') | build/android/pylib/instrumentation/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698