Merge "Wifi: P2P VTS tests fail with no P2P support" into android12-tests-dev

This commit is contained in:
Treehugger Robot 2021-12-09 23:17:44 +00:00 committed by Gerrit Code Review
commit f6564e68e5

View file

@ -49,6 +49,9 @@ class SupplicantP2pIfaceHidlTest : public SupplicantHidlTestBaseV1_4 {
public:
virtual void SetUp() override {
SupplicantHidlTestBaseV1_4::SetUp();
if (!isP2pOn_) {
GTEST_SKIP() << "Wi-Fi Direct is not supported, skip this test.";
}
p2p_iface_ = getSupplicantP2pIface_1_4(supplicant_);
ASSERT_NE(p2p_iface_.get(), nullptr);
}