From 02e4d07563419a42de3aead3b1901de31bddf47a Mon Sep 17 00:00:00 2001 From: Yu Shan Date: Mon, 20 May 2024 13:03:41 -0700 Subject: [PATCH] Add require_root to FakeVehicleHardwareTest. According to b/329690075, vendor tests need root to use vendor lib, otherwise atest will cause link error. Test: atest FakeVehicleHardwareTest on cf_auto Flag: EXEMPT bug Bug: 341762230 Merged-In: I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5 (cherry-picked from commit: f01c7aec0d7f7db784531a5ce18a87afa9e9c0f1) Change-Id: I6bab19b20e6fe91dbdb2a6526172a5dd1d092ff5 --- automotive/vehicle/aidl/impl/fake_impl/hardware/test/Android.bp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/automotive/vehicle/aidl/impl/fake_impl/hardware/test/Android.bp b/automotive/vehicle/aidl/impl/fake_impl/hardware/test/Android.bp index 9819f3cd3d..a335eeaa63 100644 --- a/automotive/vehicle/aidl/impl/fake_impl/hardware/test/Android.bp +++ b/automotive/vehicle/aidl/impl/fake_impl/hardware/test/Android.bp @@ -54,6 +54,8 @@ cc_test { defaults: [ "VehicleHalDefaults", ], + // Need root to use vendor lib: libgrpc++. + require_root: true, test_suites: ["device-tests"], }