diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-05-21 07:44:23 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-05-21 08:14:15 +0200 |
| commit | c66ac79a1308f1dc7dd8ecf7466ba2ad648176e9 (patch) | |
| tree | 28e03341c64c1c80aa47c12ba475b14eab824810 /smoketest/scripts/cli | |
| parent | 87cb7ec09799047f71b22ede4f3c5ef241930c15 (diff) | |
| download | vyos-1x-c66ac79a1308f1dc7dd8ecf7466ba2ad648176e9.tar.gz vyos-1x-c66ac79a1308f1dc7dd8ecf7466ba2ad648176e9.zip | |
wireless: smoketest: T8528: remove all mt7915e tests
The testcases have been written in a a way which would make CI fail - as there
was no dynamic check if an mt7915e card was installed or not. There should be
a dedicated, conditional check if a mt7915e card is present or not, and the
test code should only be run if such a card is detected.
Diffstat (limited to 'smoketest/scripts/cli')
| -rwxr-xr-x | smoketest/scripts/cli/test_interfaces_wireless.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_wireless.py b/smoketest/scripts/cli/test_interfaces_wireless.py index 6b2d3842d..a61c7740e 100755 --- a/smoketest/scripts/cli/test_interfaces_wireless.py +++ b/smoketest/scripts/cli/test_interfaces_wireless.py @@ -82,17 +82,6 @@ class WirelessInterfaceTest(BasicInterfaceTest.TestCase): cls.cli_set(cls, wifi_cc_path + [country]) - def tearDown(self): - # Remove mt7915e module configuration file after each test - mt7915e_conf = f'/etc/modprobe.d/mt7915e.conf' - if os.path.isfile(mt7915e_conf): - tmp = call(f'sudo rm -f {mt7915e_conf}') - # Fail the test if file cannot be removed - if tmp != 0: - self.fail(f'Failed to remove {mt7915e_conf}') - # Call tearDown method from super class... - super().tearDown() - def test_wireless_add_single_ip_address(self): # derived method to check if member interfaces are enslaved properly super().test_add_single_ip_address() @@ -229,9 +218,6 @@ class WirelessInterfaceTest(BasicInterfaceTest.TestCase): for key in vht_opt: self.cli_set(self._base_path + [interface, 'capabilities', 'vht'] + key.split()) - # Load mt7915e to test module config generation - check_kmod('mt7915e') - self.cli_commit() # @@ -256,11 +242,6 @@ class WirelessInterfaceTest(BasicInterfaceTest.TestCase): for key, value in vht_opt.items(): self.assertIn(value, tmp) - # mt7916 card configuration - tmp = read_file(f'/etc/modprobe.d/mt7915e.conf') - self.assertIsNotNone(tmp) - self.assertEqual('options mt7915e enable_6ghz=0', tmp) - def test_wireless_hostapd_vht_su_beamformer_config(self): # Single-User-Beamformer interface = self._interfaces[1] # wlan1 @@ -306,9 +287,6 @@ class WirelessInterfaceTest(BasicInterfaceTest.TestCase): for key in vht_opt: self.cli_set(self._base_path + [interface, 'capabilities', 'vht'] + key.split()) - # Load mt7915e to test module config generation - check_kmod('mt7915e') - self.cli_commit() # @@ -333,11 +311,6 @@ class WirelessInterfaceTest(BasicInterfaceTest.TestCase): for key, value in vht_opt.items(): self.assertIn(value, tmp) - # mt7916 card configuration - tmp = read_file(f'/etc/modprobe.d/mt7915e.conf') - self.assertIsNotNone(tmp) - self.assertEqual('options mt7915e enable_6ghz=0', tmp) - def test_wireless_hostapd_he_2ghz_config(self): # Only set the hostapd (access-point) options - HE mode for 802.11ax at 2.4GHz interface = self._interfaces[1] # wlan1 @@ -447,9 +420,6 @@ class WirelessInterfaceTest(BasicInterfaceTest.TestCase): self.cli_set(self._base_path + [interface, 'capabilities', 'he', 'beamform', 'multi-user-beamformer']) self.cli_set(self._base_path + [interface, 'capabilities', 'he', 'beamform', 'single-user-beamformer']) - # Load mt7915e to test module config generation - check_kmod('mt7915e') - self.cli_commit() # @@ -509,11 +479,6 @@ class WirelessInterfaceTest(BasicInterfaceTest.TestCase): # Check for running process self.assertTrue(process_named_running('hostapd')) - # mt7916 card configuration - tmp = read_file(f'/etc/modprobe.d/mt7915e.conf') - self.assertIsNotNone(tmp) - self.assertEqual('options mt7915e enable_6ghz=1', tmp) - def test_wireless_hostapd_wpa_config(self): # Only set the hostapd (access-point) options interface = self._interfaces[1] # wlan1 |
