From f01c7aec0d7f7db784531a5ce18a87afa9e9c0f1 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 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 664c8775f6..9f002dd7cd 100644 --- a/automotive/vehicle/aidl/impl/fake_impl/hardware/test/Android.bp +++ b/automotive/vehicle/aidl/impl/fake_impl/hardware/test/Android.bp @@ -56,6 +56,8 @@ cc_test { defaults: [ "VehicleHalDefaults", ], + // Need root to use vendor lib: libgrpc++. + require_root: true, test_suites: ["device-tests"], }