summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-24 21:29:19 +0200
committerChristian Poessinger <christian@poessinger.com>2020-07-24 21:29:19 +0200
commit132b0a424730fca39e1ea3b3ab5c177ec330a057 (patch)
tree1d824cb9cf56423c68911f976af4b53995171aae
parentded9d1b9372cdee3066fc62fa59c4fd2a0ea3ad5 (diff)
downloadvyos-1x-132b0a424730fca39e1ea3b3ab5c177ec330a057.tar.gz
vyos-1x-132b0a424730fca39e1ea3b3ab5c177ec330a057.zip
wireless: use library function for loading kernel modules
-rwxr-xr-xscripts/cli/test_interfaces_wireless.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/cli/test_interfaces_wireless.py b/scripts/cli/test_interfaces_wireless.py
index 5d04a1c44..ff293ac84 100755
--- a/scripts/cli/test_interfaces_wireless.py
+++ b/scripts/cli/test_interfaces_wireless.py
@@ -18,6 +18,7 @@ import os
import unittest
from base_interfaces_test import BasicInterfaceTest
+from vyos.util import check_kmod
class WirelessInterfaceTest(BasicInterfaceTest.BaseTest):
def setUp(self):
@@ -47,8 +48,6 @@ class WirelessInterfaceTest(BasicInterfaceTest.BaseTest):
# commit changes
self.session.commit()
-
-
if __name__ == '__main__':
- os.system('sudo modprobe mac80211_hwsim')
+ check_kmod('mac80211_hwsim')
unittest.main()