Commit 77c0bf9d authored by yolandyan's avatar yolandyan Committed by Commit bot

Add the product check into shouldSkip in DisableIf

Review-Url: https://codereview.chromium.org/2168133003
Cr-Commit-Position: refs/heads/master@{#406977}
parent 64cb3a3e
...@@ -28,7 +28,7 @@ public class DisableIfSkipCheck extends SkipCheck { ...@@ -28,7 +28,7 @@ public class DisableIfSkipCheck extends SkipCheck {
if (method == null) return true; if (method == null) return true;
for (DisableIf.Build v : getAnnotations(method, DisableIf.Build.class)) { for (DisableIf.Build v : getAnnotations(method, DisableIf.Build.class)) {
if (abi(v) && hardware(v) && sdk(v)) { if (abi(v) && hardware(v) && product(v) && sdk(v)) {
if (!v.message().isEmpty()) { if (!v.message().isEmpty()) {
Log.i(TAG, "%s is disabled: %s", testCase.toString(), v.message()); Log.i(TAG, "%s is disabled: %s", testCase.toString(), v.message());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment