From 7747ac6d133769109becc33d46270ebca8acd3b1 Mon Sep 17 00:00:00 2001 From: Roland Levillain Date: Thu, 4 Aug 2022 19:23:37 +0100 Subject: Disable pre-submit host unit-testing for `libnativebridge-tests`. Test module `libnativebridge-tests` is not compatible with TradeFed (because of its use of the `test_per_src` feature) and is meant to be executed with the `tests/runtests.sh` script instead. (cherry picked from commit ccf4f91f7768e8ed14a685f5bbbb0bf03e467081) Test: Execute `m host-unit-tests` and check that the generated `host-unit-tests.zip` test suite does not contain any `libnativebridge-tests` test case. Test: art/libnativebridge/tests/runtests.sh Bug: 242237732 Bug: 241124414 Change-Id: Id10e844adf9f2ef3ca24082f0fc501b5e911481b Merged-In: Id10e844adf9f2ef3ca24082f0fc501b5e911481b --- libnativebridge/tests/Android.bp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libnativebridge/tests') diff --git a/libnativebridge/tests/Android.bp b/libnativebridge/tests/Android.bp index b789a2e9f8..d7878381c9 100644 --- a/libnativebridge/tests/Android.bp +++ b/libnativebridge/tests/Android.bp @@ -110,6 +110,14 @@ cc_test { // unloading, so each test needs to be its own process. test_per_src: true, + // Disable pre-submit host unit-testing for this test module, as + // it is not compatible with TradeFed (because of the use of the + // `test_per_src` feature above) and meant to be executed with the + // `runtests.sh` script instead. + test_options: { + unit_test: false, + }, + srcs: [ "NativeBridgeApi.c", "CodeCacheCreate_test.cpp", -- cgit v1.2.3-59-g8ed1b