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.
This commit is contained in:
James Prestwood 2022-06-03 10:05:53 -07:00 committed by Denis Kenzior
parent 19693f587f
commit 0545dbcf24
1 changed files with 1 additions and 1 deletions

View File

@ -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):