Version 2! I figured out that I was saving the monitor_dumper in the wrong class, so moved where it's saved into the OESSHTarget code, it still needs to be created in the OEQemuTarget since that's where the runner is available.
Currently we interact with the JSON (which is new to me) interface of qmp and right now the write/read is just raw with no JSON dump, that might be why I am seeing the erros after the first one. I did try an empty run_monitor("") between commands, but that did not help. The run_monitor() may need to be reworked to deal with JSON. Also, I still have the static port of 4444 for the telnet/cli version of the monitor and the possible race for the generated port as I have not found a solution for that yet. Sau! The output goes into files as follows: :::::::::::::: tmp/log/runtime-hostdump/202011101608_qmp/unknown_00_qemu_monitor :::::::::::::: '{"execute":"status"}\n' {"timestamp": {"seconds": 1605053296, "microseconds": 645339}, "event": "NIC_RX_FILTER _CHANGED", "data": {"path": "/machine/peripheral-anon/device[0]/virtio-backend"}} :::::::::::::: tmp/log/runtime-hostdump/202011101608_qmp/unknown_01_qemu_monitor :::::::::::::: '{"execute":"query-status"}\n' {"error": {"class": "GenericError", "desc": "QMP input must be a JSON object"}} :::::::::::::: tmp/log/runtime-hostdump/202011101608_qmp/unknown_02_qemu_monitor :::::::::::::: '{"execute":"query-block"}\n' {"error": {"class": "GenericError", "desc": "QMP input must be a JSON object"}} Saul Wold (1): qemurunner: add support for qmp cmds meta/classes/testimage.bbclass | 7 ++++ meta/lib/oeqa/core/target/qemu.py | 6 +++ meta/lib/oeqa/core/target/ssh.py | 22 ++++++++-- meta/lib/oeqa/targetcontrol.py | 5 +++ meta/lib/oeqa/utils/dump.py | 20 +++++++++ meta/lib/oeqa/utils/qemurunner.py | 70 ++++++++++++++++++++++++++++++- 6 files changed, 126 insertions(+), 4 deletions(-) -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#144462): https://lists.openembedded.org/g/openembedded-core/message/144462 Mute This Topic: https://lists.openembedded.org/mt/78176477/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-