mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 06:29:23 +01:00
auto-t: update testAgent to use TestContext
This hides iwctl output unless verbose is specified
This commit is contained in:
parent
03ff410dff
commit
b9cb6134d6
@ -10,6 +10,7 @@ from iwd import PSKAgent
|
|||||||
from iwd import NetworkType
|
from iwd import NetworkType
|
||||||
import testutil
|
import testutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
from config import ctx
|
||||||
|
|
||||||
class Test(unittest.TestCase):
|
class Test(unittest.TestCase):
|
||||||
|
|
||||||
@ -57,7 +58,7 @@ class Test(unittest.TestCase):
|
|||||||
def test_connection_with_other_agent(self):
|
def test_connection_with_other_agent(self):
|
||||||
wd = IWD()
|
wd = IWD()
|
||||||
|
|
||||||
iwctl = subprocess.Popen(['iwctl', '-P', 'secret_ssid2'])
|
iwctl = ctx.start_process(['iwctl', '-P', 'secret_ssid2']).pid
|
||||||
# Let iwctl to start and register its agent.
|
# Let iwctl to start and register its agent.
|
||||||
wd.wait(2)
|
wd.wait(2)
|
||||||
|
|
||||||
@ -72,7 +73,7 @@ class Test(unittest.TestCase):
|
|||||||
|
|
||||||
wd = IWD()
|
wd = IWD()
|
||||||
|
|
||||||
iwctl = subprocess.Popen(['iwctl', '-P', 'secret_ssid2'])
|
iwctl = ctx.start_process(['iwctl', '-P', 'secret_ssid2']).pid
|
||||||
# Let iwctl to start and register its agent.
|
# Let iwctl to start and register its agent.
|
||||||
wd.wait(2)
|
wd.wait(2)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user