Change TEST_MAPPING to use test_module_config rather than list options.
Keep independent runs of CtsOsTestCases independent
go/test-module-config
Verified that the module was included in presubmit and only the expected tests are run for the module:
~/aosp-main-with-phones/system/libhidl/libhidlmemory
Test: atest -v -p --start-avd .:presubmit
Summary (Test executed with 1 devices.)
-------
x86_64 hidl_test:hidl_test: Passed: 0, Failed: 0, Ignored: 4, Assumption Failed: 0
x86_64 CtsOsTestCases_cts_hwbindertest:android.os.cts: Passed: 11, Failed: 0, Ignored: 0, Assumption Failed: 1
x86_64 hal_implementation_test:hal_implementation_test: Passed: 2, Failed: 0, Ignored: 0, Assumption Failed: 0
x86_64 hidl_lazy_test:hidl_lazy_test: Passed: 0, Failed: 0, Ignored: 3, Assumption Failed: 0
x86_64 libhidl_test:libhidl_test: Passed: 28, Failed: 0, Ignored: 1, Assumption Failed: 0
x86_64 vts_ibase_test:vts_ibase_test: Passed: 0, Failed: 0, Ignored: 7, Assumption Failed: 0
x86_64 vts_treble_vintf_framework_test:vts_treble_vintf_framework_test: Passed: 27, Failed: 0, Ignored: 0, Assumption Failed: 0
x86_64 vts_treble_vintf_vendor_test:vts_treble_vintf_vendor_test: Passed: 151, Failed: 0, Ignored: 1, Assumption Failed: 0
x86_64 CtsOsTestCases_cts_hwbindertest
--------------------------------------
android.os.cts (12 Tests)
[1/12] android.os.cts.HwBinderTest#testAccurateMarshallWithExtraSpaceAndOffset: PASSED (51ms)
11-19 21:06:57 D/ModuleListener: ModuleListener.testStarted(android.os.cts.HwBinderTest#testFullHandleHasNoSingleFileDescriptor) on 127.0.0.1:43527
[2/12] android.os.cts.HwBinderTest#testFullHandleHasNoSingleFileDescriptor: PASSED (1ms)
11-19 21:06:57 I/ModuleListener: [2/12] 127.0.0.1:43527 android.os.cts.HwBinderTest#testFullHandleHasNoSingleFileDescriptor PASSED
11-19 21:06:57 D/ModuleListener: ModuleListener.testStarted(android.os.cts.HwBinderTest#testEmptyHandleHasNoSingleFileDescriptor) on 127.0.0.1:43527
11-19 21:06:57 I/ModuleListener: [3/12] 127.0.0.1:43527 android.os.cts.HwBinderTest#testEmptyHandleHasNoSingleFileDescriptor PASSED
[3/12] android.os.cts.HwBinderTest#testEmptyHandleHasNoSingleFileDescriptor: PASSED (0ms)
11-19 21:06:57 D/ModuleListener: ModuleListener.testStarted(android.os.cts.HwBinderTest#testNotEnoughSpaceBecauseOfSizeAndOffset) on 127.0.0.1:43527
[4/12] android.os.cts.HwBinderTest#testNotEnoughSpaceBecauseOfSizeAndOffset: PASSED (0ms)
11-19 21:06:57 I/ModuleListener: [4/12] 127.0.0.1:43527 android.os.cts.HwBinderTest#testNotEnoughSpaceBecauseOfSizeAndOffset PASSED
11-19 21:06:57 D/ModuleListener: ModuleListener.testStarted(android.os.cts.HwBinderTest#testNotEnoughSpaceBecauseOfSize) on 127.0.0.1:43527
Bug: 379707081
Bug: 370846783
Change-Id: I24264cb583b695d6ba7b223f7d1b90cd7cc32ae7
Test-Mapping-Slo-Bypass-Bug: b/335015078
diff --git a/TEST_MAPPING b/TEST_MAPPING
index 7193d26..40aac18 100644
--- a/TEST_MAPPING
+++ b/TEST_MAPPING
@@ -25,12 +25,7 @@
"name": "hidl_test"
},
{
- "name": "CtsOsTestCases",
- "options": [
- {
- "include-filter": "android.os.cts.HwBinderTest"
- }
- ]
+ "name": "CtsOsTestCases_cts_hwbindertest"
}
]
}