Merge "supplicant(vts): Skip p2p tests on non-p2p devices as intended"

This commit is contained in:
Treehugger Robot
2020-11-14 06:14:29 +00:00
committed by Gerrit Code Review

View File

@@ -75,7 +75,7 @@ TEST_P(SupplicantHidlTest, AddStaInterface) {
* AddP2pInterface
*/
TEST_P(SupplicantHidlTest, AddP2pInterface) {
if (isP2pOn_) return;
if (!isP2pOn_) return;
ISupplicant::IfaceInfo iface_info;
iface_info.name = getP2pIfaceName();
iface_info.type = IfaceType::P2P;
@@ -115,7 +115,7 @@ TEST_P(SupplicantHidlTest, RemoveStaInterface) {
* RemoveP2pInterface
*/
TEST_P(SupplicantHidlTest, RemoveP2pInterface) {
if (isP2pOn_) return;
if (!isP2pOn_) return;
ISupplicant::IfaceInfo iface_info;
iface_info.name = getP2pIfaceName();
iface_info.type = IfaceType::P2P;