commit | 086263623176740a391357eb3bb7545e4d811e59 | [log] [tgz] |
---|---|---|
author | Daniel Cardenas <DanielCar@google.com> | Mon Oct 28 16:59:07 2019 -0700 |
committer | Daniel Cardenas <DanielCar@google.com> | Wed Oct 30 08:51:08 2019 -0700 |
tree | 3dad2840507ac1d20b91ac9b43c42c4fa303d844 | |
parent | db7f6ccf8e59408f7f47b48e7f33e55982fefb5e [diff] |
Give device debug message if no logic found for test. This will help to debug when test names don't match between biz logic and java test. Bug: 142210657 Test: gts-tradefed run gts-dev -m GtsTvTestCases --business-logic-url https://staging-androidpartner.sandbox.googleapis.com/v1/xtsBusinessLogic/suites/gts:select Change-Id: I5c20ba3ba7f0220724ee192769821a43d622fc28
diff --git a/common/device-side/util-axt/src/com/android/compatibility/common/util/BusinessLogicTestCase.java b/common/device-side/util-axt/src/com/android/compatibility/common/util/BusinessLogicTestCase.java index 6516bcc..02aaad8 100644 --- a/common/device-side/util-axt/src/com/android/compatibility/common/util/BusinessLogicTestCase.java +++ b/common/device-side/util-axt/src/com/android/compatibility/common/util/BusinessLogicTestCase.java
@@ -74,6 +74,13 @@ Log.i(TAG, "Finding business logic for test case: " + testName); BusinessLogicExecutor executor = new BusinessLogicDeviceExecutor(getContext(), this); mBusinessLogic.applyLogicFor(testName, executor); + } else { + /* There are cases in which this is an acceptable outcome, and we do not want to fail. + * For instance, some business logic rule lists are only sent from the server + * for certain devices (see go/aes-gts). Devices exempt from those rules will + * receive no BL config for some tests, and this should result in a pass. + */ + Log.d(TAG, "No business logic found for test: " + testName); } }