Skip to content

Commit afa0148

Browse files
committed
test: Add parameter -j to watchdogctl
This is required to get the output as JSON data, since the upgrade of buildroot (and watchdogd)
1 parent 26320cc commit afa0148

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/case/hardware/watchdog/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
tgtssh = env.attach("target", "mgmt", "ssh")
2424

2525
with test.step("Verify the presence of a watchdog device"):
26-
wctl = tgtssh.run(["watchdogctl"], stdout=subprocess.PIPE)
26+
wctl = tgtssh.run(["watchdogctl", "-j"], stdout=subprocess.PIPE)
2727
conf = json.loads(wctl.stdout)
2828

2929
dogs = [ dog for dog in conf.get("device", []) if dog.get("name", "") == "/dev/watchdog" ]

0 commit comments

Comments
 (0)