diff options
| author | Thomas Huth <thuth@redhat.com> | 2023-01-09 11:13:06 +0100 |
|---|---|---|
| committer | Laurent Vivier <laurent@vivier.eu> | 2023-01-16 18:36:47 +0100 |
| commit | 6eb71c6a1e917f3a6ece71593ff44de6eae8bba9 (patch) | |
| tree | 75a1f611e4899c64e68a0f986bf29dd4a305e76a | |
| parent | a48f692929828212f75eb6e8d11bbb6cdffad153 (diff) | |
| download | focaccia-qemu-6eb71c6a1e917f3a6ece71593ff44de6eae8bba9.tar.gz focaccia-qemu-6eb71c6a1e917f3a6ece71593ff44de6eae8bba9.zip | |
tests/qtest/test-hmp: Improve the check for verbose mode
Running the test-hmp with V=2 up to V=9 runs the test in verbose mode, but running for example with V=10 falls back to non-verbose mode ... Improve this oddity by properly treating the argument as a number. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230109101306.271444-1-thuth@redhat.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
| -rw-r--r-- | tests/qtest/test-hmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/test-hmp.c b/tests/qtest/test-hmp.c index f8b22abe4c..b4a920df89 100644 --- a/tests/qtest/test-hmp.c +++ b/tests/qtest/test-hmp.c @@ -151,7 +151,7 @@ int main(int argc, char **argv) { char *v_env = getenv("V"); - if (v_env && *v_env >= '2') { + if (v_env && atoi(v_env) >= 2) { verbose = true; } |