qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Max Reitz <mreitz@redhat.com>
To: Thomas Huth <thuth@redhat.com>,
	qemu-devel@nongnu.org, Kevin Wolf <kwolf@redhat.com>
Cc: peter.maydell@linaro.org, qemu-block@nongnu.org
Subject: Re: [PATCH] iotests: Skip test_stream_parallel in test 030 when doing "make check"
Date: Mon, 7 Sep 2020 10:27:41 +0200	[thread overview]
Message-ID: <e414b62b-7fc4-0b7d-2db8-77fde2d9e5f6@redhat.com> (raw)
In-Reply-To: <20200905112445.718881-1-thuth@redhat.com>


[-- Attachment #1.1: Type: text/plain, Size: 1713 bytes --]

On 05.09.20 13:24, Thomas Huth wrote:
> The test_stream_parallel test still occasionally fails in the CI.
> Thus let's disable it during "make check" for now so that it does
> not cause trouble during merge tests. We can enable it again once
> the problem has been resolved.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  See e.g. these URLs for the failure:
>   https://cirrus-ci.com/task/5449330930745344?command=main#L6482
>   https://lists.gnu.org/archive/html/qemu-devel/2020-08/msg00136.html
> 
>  tests/check-block.sh   | 3 +++
>  tests/qemu-iotests/030 | 4 ++++
>  2 files changed, 7 insertions(+)
> 
> diff --git a/tests/check-block.sh b/tests/check-block.sh
> index 8e29c868e5..a5a69060e1 100755
> --- a/tests/check-block.sh
> +++ b/tests/check-block.sh
> @@ -55,6 +55,9 @@ fi
>  
>  cd tests/qemu-iotests
>  
> +# QEMU_CHECK_BLOCK_AUTO is used to disable some unstable sub-tests
> +export QEMU_CHECK_BLOCK_AUTO=1
> +
>  ret=0
>  for fmt in $format_list ; do
>      ./check -makecheck -$fmt $group || ret=1
> diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030
> index 31c028306b..8c3af2f658 100755
> --- a/tests/qemu-iotests/030
> +++ b/tests/qemu-iotests/030
> @@ -231,6 +231,10 @@ class TestParallelOps(iotests.QMPTestCase):
>      def test_stream_parallel(self):
>          self.assert_no_active_block_jobs()
>  
> +        # The test occasionally failed in the CI, so disable it for "make check":
> +        if os.environ.get('QEMU_CHECK_BLOCK_AUTO'):
> +            return

What do you think about a decorator, i.e.

@unittest.skipIf(os.environ.get('QEMU_CHECK_BLOCK_AUTO'),
                 'test disabled in CI')

?

Max


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2020-09-07  8:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-05 11:24 [PATCH] iotests: Skip test_stream_parallel in test 030 when doing "make check" Thomas Huth
2020-09-07  8:27 ` Max Reitz [this message]

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=e414b62b-7fc4-0b7d-2db8-77fde2d9e5f6@redhat.com \
    --to=mreitz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=thuth@redhat.com \
    /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).