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:
Mattias Walström
2026-03-04 11:45:04 +01:00
parent 26320cc771
commit afa01489e6
+1 -1
View File
@@ -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" ]