3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 05:39:24 +01:00

auto-t: skip testEAP-PEAP-SIM if ofonod is not running

This commit is contained in:
James Prestwood 2021-08-13 14:49:26 -07:00 committed by Denis Kenzior
parent dbd8842d51
commit f721f1de1e

View File

@ -10,6 +10,7 @@ from iwd import IWD
from iwd import NetworkType from iwd import NetworkType
from hlrauc import AuthCenter from hlrauc import AuthCenter
from ofono import Ofono from ofono import Ofono
from config import ctx
class Test(unittest.TestCase): class Test(unittest.TestCase):
def validate_connection(self, wd): def validate_connection(self, wd):
@ -46,6 +47,9 @@ class Test(unittest.TestCase):
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
if not ctx.is_process_running('ofonod'):
cls.skipTest(cls, "ofono not running")
cls.auth = AuthCenter('/tmp/hlrauc.sock', '/tmp/sim.db') cls.auth = AuthCenter('/tmp/hlrauc.sock', '/tmp/sim.db')
IWD.copy_to_storage('ssidEAP-PEAP-SIM.8021x') IWD.copy_to_storage('ssidEAP-PEAP-SIM.8021x')