diff options
| author | 2023-06-29 18:19:58 +0000 | |
|---|---|---|
| committer | 2023-06-29 18:19:58 +0000 | |
| commit | b47165e914e069c1e4b7d52fb1644b5ca2ef6fae (patch) | |
| tree | 19991a7ada85042e613f1b7be07c22d0e3d3a799 | |
| parent | 61cce1a0ea588ea5d15ffc1e2fbb43d9db024be0 (diff) | |
| parent | 97796ab9904e9a4ff77a9fc30acde9c5ca95f29a (diff) | |
Merge "Deduplicate test expectation data in a different way" into udc-dev am: 15988e77e6 am: 97796ab990
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23824651
Change-Id: Ia196324e3e226105d6142490dc7e6dd6eb6ea3a6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | tests/BinaryTransparencyHostTest/src/android/transparency/test/BinaryTransparencyHostTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/BinaryTransparencyHostTest/src/android/transparency/test/BinaryTransparencyHostTest.java b/tests/BinaryTransparencyHostTest/src/android/transparency/test/BinaryTransparencyHostTest.java index db369756c50e..346622f0f467 100644 --- a/tests/BinaryTransparencyHostTest/src/android/transparency/test/BinaryTransparencyHostTest.java +++ b/tests/BinaryTransparencyHostTest/src/android/transparency/test/BinaryTransparencyHostTest.java @@ -61,8 +61,11 @@ public final class BinaryTransparencyHostTest extends BaseHostJUnit4Test { options.setTestMethodName("testCollectAllApexInfo"); // Collect APEX package names from /apex, then pass them as expectation to be verified. + // The package names are collected from the find name with deduplication (NB: we used to + // deduplicate by dropping directory names with '@', but there's a DCLA case where it only + // has one directory with '@'. So we have to keep it and deduplicate the current way). CommandResult result = getDevice().executeShellV2Command( - "ls -d /apex/*/ |grep -v @ |grep -v /apex/sharedlibs |cut -d/ -f3"); + "ls -d /apex/*/ |grep -v /apex/sharedlibs |cut -d/ -f3 |cut -d@ -f1 |sort |uniq"); assertTrue(result.getStatus() == CommandStatus.SUCCESS); String[] packageNames = result.getStdout().split("\n"); for (var i = 0; i < packageNames.length; i++) { |