mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
auto-t: remove bringing up lo interface
Several tests were setting lo up which is already done by test-runner.
This commit is contained in:
parent
4545f80e58
commit
950624761c
@ -62,8 +62,6 @@ class Test(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
IWD.copy_to_storage('ssidFILS-256.8021x')
|
||||
os.system('ip link set lo up')
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
|
@ -62,8 +62,6 @@ class Test(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
IWD.copy_to_storage('ssidFILS-384.8021x')
|
||||
os.system('ip link set lo up')
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
|
@ -122,7 +122,6 @@ class Test(unittest.TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
os.system('ip link set lo up')
|
||||
IWD.copy_to_storage('TestFT.8021x')
|
||||
|
||||
cls.bss_hostapd = [ HostapdCLI(config='ft-eap-ccmp-1.conf'),
|
||||
|
@ -75,8 +75,6 @@ class Test(unittest.TestCase):
|
||||
def setUpClass(cls):
|
||||
IWD.copy_to_storage('TestPreauth.8021x')
|
||||
|
||||
os.system('ip link set lo up')
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
IWD.clear_storage()
|
||||
|
@ -487,8 +487,6 @@ class TestContext(Namespace):
|
||||
print("Ofono or Phonesim not found, skipping test")
|
||||
return
|
||||
|
||||
Process(['ip', 'link', 'set', 'lo', 'up']).wait()
|
||||
|
||||
os.environ['OFONO_PHONESIM_CONFIG'] = '/tmp/phonesim.conf'
|
||||
|
||||
phonesim_args = ['phonesim', '-p', '12345', '/usr/share/phonesim/default.xml']
|
||||
@ -889,7 +887,6 @@ def post_test(ctx, to_copy):
|
||||
elif os.path.exists('/tmp/' + f):
|
||||
os.remove('/tmp/' + f)
|
||||
|
||||
Process(['ip', 'link', 'set', 'lo', 'down']).wait()
|
||||
except Exception as e:
|
||||
print("Exception thrown in post_test")
|
||||
finally:
|
||||
|
Loading…
Reference in New Issue
Block a user