[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/9] tests/qtest/arm-cpu-features: Remove Cortex-A15 check

From: John Snow
Subject: Re: [PATCH 1/9] tests/qtest/arm-cpu-features: Remove Cortex-A15 check
Date: Mon, 8 Feb 2021 09:22:54 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

On 2/6/21 5:40 AM, Andrew Jones wrote:
BTW is there some easy way to dump QMP traffic on stdio?
You can use scripts/qmp/qmp-shell to manually test stuff.


If you enable debug logging in python too, it'll print to STDERR. This may or may not be useful depending on how the library is getting used and by whom.

(For iotests, you used to be able to engage this mode by passing -d. I don't know if the new test runner has changed this behavior. I'm sure avocado has something similar, somewhere, too.)

Otherwise, the runes are something like:

import logging


but this only works once per process; the iotests entry point already has a call like this. To override it:

import logging


There are other, more complex incantations; you can read https://docs.python.org/3/howto/logging.html if you'd like; the logger we care about is "QMP" (for QMP instances created without a 'nickname') and "QMP.{nickname}" for ones that were. So you can do this:


but you might need to adjust other settings to get it to appear on STDERR (I don't remember), like setting handler propagation settings and so on.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]