mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-03 14:23:02 +02:00
test: Add parameter -j to watchdogctl
This is required to get the output as JSON data, since the upgrade of buildroot (and watchdogd)
This commit is contained in:
@@ -23,7 +23,7 @@ with infamy.Test() as test:
|
||||
tgtssh = env.attach("target", "mgmt", "ssh")
|
||||
|
||||
with test.step("Verify the presence of a watchdog device"):
|
||||
wctl = tgtssh.run(["watchdogctl"], stdout=subprocess.PIPE)
|
||||
wctl = tgtssh.run(["watchdogctl", "-j"], stdout=subprocess.PIPE)
|
||||
conf = json.loads(wctl.stdout)
|
||||
|
||||
dogs = [ dog for dog in conf.get("device", []) if dog.get("name", "") == "/dev/watchdog" ]
|
||||
|
||||
Reference in New Issue
Block a user