mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-21 22:09:23 +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
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
IWD.copy_to_storage('ssidFILS-256.8021x')
|
IWD.copy_to_storage('ssidFILS-256.8021x')
|
||||||
os.system('ip link set lo up')
|
|
||||||
pass
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
@ -62,8 +62,6 @@ class Test(unittest.TestCase):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
IWD.copy_to_storage('ssidFILS-384.8021x')
|
IWD.copy_to_storage('ssidFILS-384.8021x')
|
||||||
os.system('ip link set lo up')
|
|
||||||
pass
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
|
@ -122,7 +122,6 @@ class Test(unittest.TestCase):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
os.system('ip link set lo up')
|
|
||||||
IWD.copy_to_storage('TestFT.8021x')
|
IWD.copy_to_storage('TestFT.8021x')
|
||||||
|
|
||||||
cls.bss_hostapd = [ HostapdCLI(config='ft-eap-ccmp-1.conf'),
|
cls.bss_hostapd = [ HostapdCLI(config='ft-eap-ccmp-1.conf'),
|
||||||
|
@ -75,8 +75,6 @@ class Test(unittest.TestCase):
|
|||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
IWD.copy_to_storage('TestPreauth.8021x')
|
IWD.copy_to_storage('TestPreauth.8021x')
|
||||||
|
|
||||||
os.system('ip link set lo up')
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def tearDownClass(cls):
|
def tearDownClass(cls):
|
||||||
IWD.clear_storage()
|
IWD.clear_storage()
|
||||||
|
@ -487,8 +487,6 @@ class TestContext(Namespace):
|
|||||||
print("Ofono or Phonesim not found, skipping test")
|
print("Ofono or Phonesim not found, skipping test")
|
||||||
return
|
return
|
||||||
|
|
||||||
Process(['ip', 'link', 'set', 'lo', 'up']).wait()
|
|
||||||
|
|
||||||
os.environ['OFONO_PHONESIM_CONFIG'] = '/tmp/phonesim.conf'
|
os.environ['OFONO_PHONESIM_CONFIG'] = '/tmp/phonesim.conf'
|
||||||
|
|
||||||
phonesim_args = ['phonesim', '-p', '12345', '/usr/share/phonesim/default.xml']
|
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):
|
elif os.path.exists('/tmp/' + f):
|
||||||
os.remove('/tmp/' + f)
|
os.remove('/tmp/' + f)
|
||||||
|
|
||||||
Process(['ip', 'link', 'set', 'lo', 'down']).wait()
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Exception thrown in post_test")
|
print("Exception thrown in post_test")
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
Reference in New Issue
Block a user