From 0545dbcf24f52eb4d9bfbc11c46dace537025ff1 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Fri, 3 Jun 2022 10:05:53 -0700 Subject: [PATCH] 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. --- autotests/testScan/remove_iface_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotests/testScan/remove_iface_test.py b/autotests/testScan/remove_iface_test.py index af36c1e8..4f9eef93 100644 --- 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):