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
(cherry picked from commit fbe5aff5e4)
This commit is contained in:
Roshan Pius 2017-11-15 13:35:30 -08:00 committed by Keun Soo Yim
parent 8a28de7a8c
commit d01fcb402f

View file

@ -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,