android_packages_modules_Co.../staticlibs/testutils/host/python
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jimi Chen 744a17443a Improve stability of APFv{4,6} multi-device tests
This commit enhances the stability of the APFv{4,6} multi-device tests by addressing several sources of flakiness and improving the test setup and validation.

Specifically, this commit:

* Increased sleep time in the test setup. This ensures APF is activated before each test, preventing unexpected behavior.
* Added sleep time in `ApfV4Test` to ensure APF remains enabled and is not disabled due to high throughput scenarios.
* Changed the validation order to first check received packets and then APF counters. This helps to more easily identify the root cause of test failures.
* Changed the Ethernet destination address from multicast to unicast in `ApfV6Test` to prevent packets from being filtered due to DTIM skip.
* Removed the `test_broadcast_arp_request_offload()` test, which was flaky due to DTIM skip and is adequately covered by the `test_unicast_arp_request_offload()` test.

Bug: 406570694
Flag: TEST_ONLY
Test: atest CtsConnectivityMultiDevicesTestCases:ApfV4Test
Test: atest CtsConnectivityMultiDevicesTestCases:ApfV6Test
Test: run cts -m CtsConnectivityMultiDevicesTestCases --skip-preconditions -t ApfV4Test --shard-count 2
Test: run cts -m CtsConnectivityMultiDevicesTestCases --skip-preconditions -t ApfV6Test --shard-count 2
Change-Id: I053509459078d0bd94e16a6bf7349b948f930e6c
2025-04-02 04:31:01 -07:00
..
adb_utils.py Add adb_utils for multidevice test 2024-07-01 13:33:13 +08:00
apf_test_base.py Improve stability of APFv{4,6} multi-device tests 2025-04-02 04:31:01 -07:00
apf_utils.py Revert "Skip multi-device tests instead of abort if device is non-B+ devices" 2025-03-20 04:33:43 -07:00
assert_utils.py Add expect_throws() to assert_utils.py to check expected exception 2024-10-22 03:06:47 +00:00
mdns_utils.py Add SDK check for mdns test 2024-07-15 08:53:31 +00:00
multi_devices_test_base.py Add at_least_B() decorator to restrict multi-device tests to Android B+ capable device. 2025-03-13 14:05:09 +00:00
tether_utils.py Do not expect validated when connect to Wi-Fi for upstream type None 2025-02-17 21:22:19 -08:00
wifip2p_utils.py Setup Wi-Fi P2P connection 2024-08-13 07:20:21 +00:00