mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
Merge "supplicant(vts): Remove start/stop framework" into oc-dr1-dev
This commit is contained in:
@@ -23,12 +23,9 @@
|
||||
class SupplicantHidlEnvironment : public ::testing::Environment {
|
||||
public:
|
||||
virtual void SetUp() override {
|
||||
stopWifiFramework();
|
||||
stopSupplicant();
|
||||
}
|
||||
virtual void TearDown() override {
|
||||
startWifiFramework();
|
||||
// Framework will start wpa_supplicant.
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -140,19 +140,6 @@ class ServiceNotificationListener : public IServiceNotification {
|
||||
std::condition_variable condition_;
|
||||
};
|
||||
|
||||
void stopWifiFramework() {
|
||||
ASSERT_EQ(std::system("stop"), 0);
|
||||
// TODO: Use some other mechanism to wait for the framework to
|
||||
// finish disabling.
|
||||
sleep(5);
|
||||
}
|
||||
|
||||
void startWifiFramework() {
|
||||
ASSERT_EQ(std::system("start"), 0);
|
||||
// These tests don't care whether the framework
|
||||
// finished enabling or not.
|
||||
}
|
||||
|
||||
void stopSupplicant() {
|
||||
SupplicantManager supplicant_manager;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user