From 40540d9c27d781bbb5730d7d83a93edd2380acd3 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 22 Mar 2020 18:31:34 +0100 Subject: wireless: add mandatory physical-interface --- scripts/cli/test_interfaces_wireless.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/scripts/cli/test_interfaces_wireless.py b/scripts/cli/test_interfaces_wireless.py index 9fdc2d20a..f88533b94 100755 --- a/scripts/cli/test_interfaces_wireless.py +++ b/scripts/cli/test_interfaces_wireless.py @@ -24,7 +24,26 @@ class WirelessInterfaceTest(BasicInterfaceTest.BaseTest): super().setUp() self._base_path = ['interfaces', 'wireless'] - self._interfaces = ['wlan0', 'wlan1'] + self._interfaces = ['wlan0'] + + + def test_add_description(self): + """ + A physical interface is mandatory thus we overwrite this function. + """ + for intf in self._interfaces: + self.session.set(self._base_path + [intf, 'physical-device', 'phy0']) + + super.test_add_description() + + def test_add_address(self): + """ + A physical interface is mandatory thus we overwrite this function. + """ + for intf in self._interfaces: + self.session.set(self._base_path + [intf, 'physical-device', 'phy0']) + + super.test_add_description() if __name__ == '__main__': os.system("modprobe mac80211_hwsim") -- cgit v1.2.3