commit 0545dbcf24f52eb4d9bfbc11c46dace537025ff1
parent 19693f587fb3acadba1f0b6c94f9f76005642d03
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 3 Jun 2022 10:05:53 -0700
auto-t: remove ifconfig call from testScan
ifconfig isn't available by default in several linux distros
so instead use 'ip' which seems to be much more widespread.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/autotests/testScan/remove_iface_test.py b/autotests/testScan/remove_iface_test.py
@@ -18,7 +18,7 @@ class Test(unittest.TestCase):
device.autoconnect = True
device.scan(wait=False)
- os.system('ifconfig %s down' % device.name)
+ os.system('ip link set dev %s down' % device.name)
@classmethod
def setUpClass(cls):