diff options
| author | Roshan Pius <rpius@google.com> | 2017-11-15 13:35:30 -0800 |
|---|---|---|
| committer | Roshan Pius <rpius@google.com> | 2017-11-15 13:36:47 -0800 |
| commit | fbe5aff5e441bda98a43fdc131c8ec8a6acdecf3 (patch) | |
| tree | 8d450b97999d215e8de9ed21707a68d1c5409d27 /wifi/1.0/vts | |
| parent | 4fae0e4f75cb66f34e9e928702681291d9fa74db (diff) | |
| download | android_hardware_interfaces-fbe5aff5e441bda98a43fdc131c8ec8a6acdecf3.tar.gz android_hardware_interfaces-fbe5aff5e441bda98a43fdc131c8ec8a6acdecf3.tar.bz2 android_hardware_interfaces-fbe5aff5e441bda98a43fdc131c8ec8a6acdecf3.zip | |
wifi(vts): Skip tests if feature not supported
Bug: 69338713
Test: `make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module VtsHalWifiV1_0Target -l
INFO`
Change-Id: If70050811ce87f8eff32696ecdd4d3f49646bad0
Diffstat (limited to 'wifi/1.0/vts')
| -rw-r--r-- | wifi/1.0/vts/functional/wifi_sta_iface_hidl_test.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wifi/1.0/vts/functional/wifi_sta_iface_hidl_test.cpp b/wifi/1.0/vts/functional/wifi_sta_iface_hidl_test.cpp index 30235cf8b..a3410287e 100644 --- a/wifi/1.0/vts/functional/wifi_sta_iface_hidl_test.cpp +++ b/wifi/1.0/vts/functional/wifi_sta_iface_hidl_test.cpp @@ -234,6 +234,11 @@ TEST_F(WifiStaIfaceHidlTest, RoamingControl) { * status code. */ TEST_F(WifiStaIfaceHidlTest, EnableNDOffload) { + if (!isCapabilitySupported( + IWifiStaIface::StaIfaceCapabilityMask::ND_OFFLOAD)) { + // No-op if nd offload is not supported. + return; + } EXPECT_EQ(WifiStatusCode::SUCCESS, HIDL_INVOKE(wifi_sta_iface_, enableNdOffload, true).code); } @@ -256,6 +261,11 @@ TEST_F(WifiStaIfaceHidlTest, SetScanningMacOui) { * packets will return a success status code. */ TEST_F(WifiStaIfaceHidlTest, PacketFateMonitoring) { + if (!isCapabilitySupported( + IWifiStaIface::StaIfaceCapabilityMask::DEBUG_PACKET_FATE)) { + // No-op if packet fate monitor is not supported. + return; + } // Start packet fate monitoring. EXPECT_EQ( WifiStatusCode::SUCCESS, |
