auto-t: skip ofono tests if ofonod isn't running

This commit is contained in:
James Prestwood 2020-09-10 16:12:31 -07:00 committed by Denis Kenzior
parent 1f404e32a6
commit 0d5409eb04
3 changed files with 12 additions and 0 deletions

View File

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

View File

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

View File

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