summaryrefslogtreecommitdiff
path: root/wifi/supplicant/1.0/vts/functional/supplicant_hidl_test.cpp
diff options
context:
space:
mode:
authorGabriel Biren <gbiren@google.com>2022-06-14 18:58:46 +0000
committerCherrypicker Worker <android-build-cherrypicker-worker@google.com>2022-06-29 16:41:51 +0000
commitc33f1282d8fa899ebd944008db1f92976174e92d (patch)
treec266f79b249ef4b7076aeff598e84a06ba5a0610 /wifi/supplicant/1.0/vts/functional/supplicant_hidl_test.cpp
parenta71fffd754106e755714155605aa92d672817822 (diff)
In supplicant VTS test setup, make sure that the
wifi hal is stopped before starting wifi. Bug: 234853504 Test: atest VtsHalWifiSupplicantV1_0TargetTest # HIDL service Change-Id: I413c3803a6607a72cc3aa8a5fa208551be1b1032 (cherry picked from commit bfe60cda4d9400f4f370b46e26cac97db3207917) Merged-In: I413c3803a6607a72cc3aa8a5fa208551be1b1032
Diffstat (limited to 'wifi/supplicant/1.0/vts/functional/supplicant_hidl_test.cpp')
-rw-r--r--wifi/supplicant/1.0/vts/functional/supplicant_hidl_test.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/wifi/supplicant/1.0/vts/functional/supplicant_hidl_test.cpp b/wifi/supplicant/1.0/vts/functional/supplicant_hidl_test.cpp
index eabbf1b141..da3ff3a29b 100644
--- a/wifi/supplicant/1.0/vts/functional/supplicant_hidl_test.cpp
+++ b/wifi/supplicant/1.0/vts/functional/supplicant_hidl_test.cpp
@@ -38,11 +38,12 @@ class SupplicantHidlTest
: public ::testing::TestWithParam<std::tuple<std::string, std::string>> {
public:
virtual void SetUp() override {
- // Stop Wi-Fi
- ASSERT_TRUE(stopWifiFramework()); // stop & wait for wifi to shutdown.
-
wifi_instance_name_ = std::get<0>(GetParam());
supplicant_instance_name_ = std::get<1>(GetParam());
+
+ // Stop & wait for wifi to shutdown.
+ ASSERT_TRUE(stopWifiFramework(wifi_instance_name_));
+
std::system("/system/bin/start");
ASSERT_TRUE(waitForFrameworkReady());
isP2pOn_ =