Check APF version, VSR API level, and Android version
This commit introduces checks for APF version, VSR API level,
and Android version to decide whether an APFv4 test should be
run, skipped, or fail:
* If Android version is less than V, skip the test
* If VSR API level is greater than or equal to 14 and APF
version is less than 4, fail the test
* Otherwise, if APF version is less than 4, skip the test
Test: m connectivity_multi_devices_snippet && \
atest CtsConnectivityMultiDevicesTestCases:ConnectivityMultiDevicesTest
Fix: 352132428
Change-Id: I023164fb59ad40f489abea2e0c45761efc39699b
This commit is contained in:
parent
9418634ddf
commit
73711f7b41
1 changed files with 34 additions and 4 deletions
|
|
@ -236,7 +236,7 @@ def assume_apf_version_support_at_least(
|
|||
ad: android_device.AndroidDevice, iface_name: str, expected_version: int
|
||||
) -> None:
|
||||
caps = get_apf_capabilities(ad, iface_name)
|
||||
asserts.skip_if(
|
||||
asserts.abort_class_if(
|
||||
caps.apf_version_supported < expected_version,
|
||||
f"Supported apf version {caps.apf_version_supported} < expected version"
|
||||
f" {expected_version}",
|
||||
|
|
|
|||
Loading…
Reference in a new issue