Chromium Code Reviews| 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)) |
|
perezju
2014/12/10 13:37:34
nice thing that properties also work through paral
|
| tests = [t for t in tests |
| - if self._IsTestValidForSdkRange(t, min(sdk_versions))] |
| + if self._IsTestValidForSdkRange(t, min_sdk_version)] |
| return tests |