From ca07893589ed8e3131613a548ea9b955a1213c43 Mon Sep 17 00:00:00 2001 From: "chao.meng" Date: Wed, 28 Oct 2020 14:45:24 +0800 Subject: [PATCH] DO NOT MERGE Add sleep(3) after stopSupplicant when VtsHalWifiSupplicant [root cause ] VtsHalWifiSupplicant first stop supplicant, but framework will restart supplicant, the test will fail, according to Partner IssueTracker 169498893, AOSP suggest to add a blocking [changes ] add sleep(3) [side effects]no [self test ]:yes [download normally]:yes [power on/off normally]:yes [do common repository/branch inspection]:no [is there dependence]:no [confirm dependent commit]:no [board]:unisoc [test case]:VtsHalWifiSupplicant test [reviewers ] chao.meng [change_type ] feature_bugfix [tag_product ] common Bug: 169498893 Change-Id: I7990226d346a3444f606951386e7c223fc87f98f --- wifi/supplicant/1.1/vts/functional/supplicant_hidl_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/wifi/supplicant/1.1/vts/functional/supplicant_hidl_test.cpp b/wifi/supplicant/1.1/vts/functional/supplicant_hidl_test.cpp index 28f980cf85..163c926783 100644 --- a/wifi/supplicant/1.1/vts/functional/supplicant_hidl_test.cpp +++ b/wifi/supplicant/1.1/vts/functional/supplicant_hidl_test.cpp @@ -38,6 +38,7 @@ extern WifiSupplicantHidlEnvironment* gEnv; class SupplicantHidlTest : public ::testing::VtsHalHidlTargetTestBase { public: virtual void SetUp() override { + sleep(3); startSupplicantAndWaitForHidlService(); supplicant_ = getSupplicant_1_1(); ASSERT_NE(supplicant_.get(), nullptr);