From: Thomas Huth <thuth@redhat.com>
To: Ani Sinha <ani@anisinha.ca>
Cc: qemu-devel@nongnu.org,
"Daniel P . Berrangé" <berrange@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Maydell Peter" <peter.maydell@linaro.org>,
"John Snow" <jsnow@redhat.com>, "Igor M" <imammedo@redhat.com>,
"Michael Tsirkin" <mst@redhat.com>
Subject: Re: [PATCH v3 00/10] Introduce new acpi/smbios avocado tests using biosbits
Date: Mon, 10 Oct 2022 11:21:03 +0200 [thread overview]
Message-ID: <6d16a8e0-8c3b-dde5-8ba7-311c30b0a544@redhat.com> (raw)
In-Reply-To: <CAARzgwzzQpKnd+gk_Tcw0cAzRs2s-sOe5HCUga1cF7oZ=kwS7w@mail.gmail.com>
On 10/10/2022 11.13, Ani Sinha wrote:
> On Mon, Oct 10, 2022 at 2:26 PM Thomas Huth <thuth@redhat.com> wrote:
>>
>> On 10/10/2022 10.13, Ani Sinha wrote:
>>> On Mon, Oct 10, 2022 at 1:24 PM Ani Sinha <ani@anisinha.ca> wrote:
>>>>
>>>> Please see the README file added in patch 10 for more details.
>>>> Sample runs are as follows:
>>>>
>>>> $ ./tests/venv/bin/avocado run -t acpi tests/avocado --tap -
>>>> ERROR: Missing parentheses in call to 'print'. Did you mean print(...)? (smbios.py, line 92)
>>>> ERROR: Missing parentheses in call to 'print'. Did you mean print(...)? (smilatency.py, line 47)
>>>> ERROR: Missing parentheses in call to 'print'. Did you mean print(...)? (testacpi.py, line 158)
>>>
>>> None of the above files are avocado tests or avocado related python
>>> scripts. They are run from within bits in a python 2.7 environment. I
>>> could not find a mechanism to exclude a directory from avocado tests.
>>> I also do not think making those scripts python 3 compliant is a good
>>> use of my time since upgrading bits to use python 3 would be a major
>>> task unrelated to QEMU testing.
>>
>> Maybe you could at least switch those three lines to use the new print()
>> syntax
>
> There are lots of print statements in those three files using old
> syntax. It's only complaining about the first one.
>
> to silence at least these ugly errors? ... Python 2.7 should cope
Yeah, but everybody who wants to run the QEMU avocado tests will wonder
about those ERROR messages! So I don't think that this is acceptable in the
current shape. Either fix the print lines, or move it to another directory.
Thomas
next prev parent reply other threads:[~2022-10-10 9:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-10 7:54 [PATCH v3 00/10] Introduce new acpi/smbios avocado tests using biosbits Ani Sinha
2022-10-10 8:13 ` Ani Sinha
2022-10-10 8:56 ` Thomas Huth
2022-10-10 9:13 ` Ani Sinha
2022-10-10 9:21 ` Thomas Huth [this message]
2022-10-10 9:20 ` Daniel P. Berrangé
2022-10-10 9:36 ` Ani Sinha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6d16a8e0-8c3b-dde5-8ba7-311c30b0a544@redhat.com \
--to=thuth@redhat.com \
--cc=ani@anisinha.ca \
--cc=berrange@redhat.com \
--cc=imammedo@redhat.com \
--cc=jsnow@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).