qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Fam Zheng <famz@redhat.com>, qemu-devel@nongnu.org
Cc: "Alex Bennée" <alex.bennee@linaro.org>,
	"Philippe Mathieu-Daudé" <f4bug@amsat.org>
Subject: Re: [Qemu-devel] [PATCH 2/2] docker: Enable features explicitly in test-full
Date: Thu, 7 Sep 2017 08:37:09 -0500	[thread overview]
Message-ID: <c839e15b-c486-fd7b-f3f6-deb1b7eb85f1@redhat.com> (raw)
In-Reply-To: <20170907081158.4063-3-famz@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1332 bytes --]

On 09/07/2017 03:11 AM, Fam Zheng wrote:
> Also avoid "set -e".
> 
> Signed-off-by: Fam Zheng <famz@redhat.com>
> ---
>  tests/docker/test-full | 80 ++++++++++++++++++++++++++++++++++++++++++++++----
>  1 file changed, 75 insertions(+), 5 deletions(-)
> 
> diff --git a/tests/docker/test-full b/tests/docker/test-full
> index 05f0d491d1..bd095ad91b 100755
> --- a/tests/docker/test-full
> +++ b/tests/docker/test-full
> @@ -1,8 +1,8 @@
> -#!/bin/bash -e
> +#!/bin/bash

When you drop 'set -e'...

>  #
> -# Compile all the targets.
> +# Compile all the targets with as many features enabled as possible
>  #
> -# Copyright (c) 2016 Red Hat Inc.
> +# Copyright 2016, 2017 Red Hat Inc.
>  #
>  # Authors:
>  #  Fam Zheng <famz@redhat.com>
> @@ -15,5 +15,75 @@
>  
>  cd "$BUILD_DIR"

...then you should explicitly check for failure after commands where you
really do not want to continue execution if they failed.  I'd write this:

cd "$BUILD_DIR" || exit 1

or else use && to chain it to...

>  
> -build_qemu
> -make check $MAKEFLAGS
> +build_qemu \
> +    --enable-attr \

> +    --enable-xfsctl \
> +&& make check $MAKEFLAGS

the rest of your chain.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


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

  reply	other threads:[~2017-09-07 13:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-07  8:11 [Qemu-devel] [PATCH 0/2] docker: Update ubuntu and test-full for more coverage Fam Zheng
2017-09-07  8:11 ` [Qemu-devel] [PATCH 1/2] docker: Update ubuntu image Fam Zheng
2017-09-07  8:11 ` [Qemu-devel] [PATCH 2/2] docker: Enable features explicitly in test-full Fam Zheng
2017-09-07 13:37   ` Eric Blake [this message]
2017-09-07 14:04     ` Fam Zheng

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=c839e15b-c486-fd7b-f3f6-deb1b7eb85f1@redhat.com \
    --to=eblake@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=f4bug@amsat.org \
    --cc=famz@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).