qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Cleber Rosa <crosa@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: "Aleksandar Markovic" <amarkovic@wavecomp.com>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	qemu-devel@nongnu.org, "Aurelien Jarno" <aurelien@aurel32.net>,
	f4bug@amsat.org
Subject: Re: [PATCH] tests/acceptance: move @skipUnless decoration to test itself
Date: Tue, 3 Mar 2020 09:10:09 -0500 (EST)	[thread overview]
Message-ID: <743818728.9995808.1583244609883.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <877e017d4c.fsf@linaro.org>



----- Original Message -----
> From: "Alex Bennée" <alex.bennee@linaro.org>
> To: "Cleber Rosa" <crosa@redhat.com>
> Cc: "Philippe Mathieu-Daudé" <philmd@redhat.com>, qemu-devel@nongnu.org, "Aurelien Jarno" <aurelien@aurel32.net>,
> f4bug@amsat.org, "Aleksandar Markovic" <amarkovic@wavecomp.com>
> Sent: Tuesday, March 3, 2020 8:59:47 AM
> Subject: Re: [PATCH] tests/acceptance: move @skipUnless decoration to test itself
> 
> 
> Cleber Rosa <crosa@redhat.com> writes:
> 
> > ----- Original Message -----
> >> From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
> >> To: "Alex Bennée" <alex.bennee@linaro.org>, qemu-devel@nongnu.org
> >> Cc: "Aurelien Jarno" <aurelien@aurel32.net>, f4bug@amsat.org, "Aleksandar
> >> Markovic" <amarkovic@wavecomp.com>
> >> Sent: Monday, March 2, 2020 1:14:31 PM
> >> Subject: Re: [PATCH] tests/acceptance: move @skipUnless decoration to test
> >> itself
> >> 
> >> On 3/2/20 7:09 PM, Alex Bennée wrote:
> >> > It appears ignore the decoration if just applied to the class.
> >> 
> >> Odd I remember testing this, this might be a feature supported by a
> >> newer Avocado version than the one available on Travis-CI.
> >> 
> >> > 
> >> > Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> >> > ---
> >> >   tests/acceptance/machine_mips_malta.py | 4 ++--
> >> >   1 file changed, 2 insertions(+), 2 deletions(-)
> >> > 
> >> > diff --git a/tests/acceptance/machine_mips_malta.py
> >> > b/tests/acceptance/machine_mips_malta.py
> >> > index 92b4f28a112..b8fac2a44d5 100644
> >> > --- a/tests/acceptance/machine_mips_malta.py
> >> > +++ b/tests/acceptance/machine_mips_malta.py
> >> > @@ -30,14 +30,14 @@ except ImportError:
> >> >       CV2_AVAILABLE = False
> >> >   
> >> >   
> >> > -@skipUnless(NUMPY_AVAILABLE, 'Python NumPy not installed')
> >> > -@skipUnless(CV2_AVAILABLE, 'Python OpenCV not installed')
> >> >   class MaltaMachineFramebuffer(Test):
> >> >   
> >> >       timeout = 30
> >> >   
> >> >       KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 '
> >> >   
> >> > +    @skipUnless(NUMPY_AVAILABLE, 'Python NumPy not installed')
> >> > +    @skipUnless(CV2_AVAILABLE, 'Python OpenCV not installed')
> >> >       def do_test_i6400_framebuffer_logo(self, cpu_cores_count):
> >> >           """
> >> >           Boot Linux kernel and check Tux logo is displayed on the
> >> >           framebuffer.
> >> > 
> >> 
> >> Unfortunately you have to also add it to the 7/8cores tests.
> >> 
> >> 
> >> 
> >
> > This is true of Avocado < 76.0, but on 76.0 you can decorate the
> > class too:
> >
> > https://avocado-framework.readthedocs.io/en/76.0/releases/76_0.html#users-test-writers
> >
> > Maybe replace this patch and bump Avocado's version?
> 
> Where is this defined in the source?
> 

It's defined at tests/requirements.txt.

- Cleber.

> >
> > - Cleber.
> 
> 
> --
> Alex Bennée
> 
> 



  reply	other threads:[~2020-03-03 14:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-02 18:09 [PATCH] tests/acceptance: move @skipUnless decoration to test itself Alex Bennée
2020-03-02 18:14 ` Philippe Mathieu-Daudé
2020-03-03 13:44   ` Cleber Rosa
2020-03-03 13:59     ` Alex Bennée
2020-03-03 14:10       ` Cleber Rosa [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-03-02 23:22 Philippe Mathieu-Daudé
2020-03-03  9:42 ` Aleksandar Markovic
2020-03-03 10:24   ` Alex Bennée

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=743818728.9995808.1583244609883.JavaMail.zimbra@redhat.com \
    --to=crosa@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=amarkovic@wavecomp.com \
    --cc=aurelien@aurel32.net \
    --cc=f4bug@amsat.org \
    --cc=philmd@redhat.com \
    --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).