mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-20 09:34:06 +01:00
auto-t: skip ofono tests if ofonod isn't running
This commit is contained in:
parent
1f404e32a6
commit
0d5409eb04
@ -9,6 +9,7 @@ from iwd import IWD
|
||||
from iwd import NetworkType
|
||||
from hlrauc import AuthCenter
|
||||
from ofono import Ofono
|
||||
from config import ctx
|
||||
|
||||
class Test(unittest.TestCase):
|
||||
|
||||
@ -56,6 +57,9 @@ class Test(unittest.TestCase):
|
||||
auth.stop()
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
if not ctx.is_process_running('ofonod'):
|
||||
cls.skipTest(cls, "ofono not running")
|
||||
|
||||
IWD.copy_to_storage('ssidEAP-AKA.8021x')
|
||||
|
||||
@classmethod
|
||||
|
@ -9,6 +9,7 @@ from iwd import IWD
|
||||
from iwd import NetworkType
|
||||
from hlrauc import AuthCenter
|
||||
from ofono import Ofono
|
||||
from config import ctx
|
||||
|
||||
class Test(unittest.TestCase):
|
||||
|
||||
@ -57,6 +58,9 @@ class Test(unittest.TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
if not ctx.is_process_running('ofonod'):
|
||||
cls.skipTest(cls, "ofono not running")
|
||||
|
||||
IWD.copy_to_storage('ssidEAP-AKA.8021x')
|
||||
|
||||
@classmethod
|
||||
|
@ -9,6 +9,7 @@ from iwd import IWD
|
||||
from iwd import NetworkType
|
||||
from hlrauc import AuthCenter
|
||||
from ofono import Ofono
|
||||
from config import ctx
|
||||
|
||||
class Test(unittest.TestCase):
|
||||
|
||||
@ -57,6 +58,9 @@ class Test(unittest.TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
if not ctx.is_process_running('ofonod'):
|
||||
cls.skipTest(cls, "ofono not running")
|
||||
|
||||
IWD.copy_to_storage('ssidEAP-SIM.8021x')
|
||||
|
||||
@classmethod
|
||||
|
Loading…
Reference in New Issue
Block a user