qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fam Zheng <famz@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/6] tests/docker: fix make-archive-maybe
Date: Tue, 7 Jun 2016 10:41:30 +0800	[thread overview]
Message-ID: <20160607024130.GA2273@ad.usersys.redhat.com> (raw)
In-Reply-To: <1465224417-141321-2-git-send-email-pbonzini@redhat.com>

On Mon, 06/06 16:46, Paolo Bonzini wrote:
> make-archive-maybe expects an archive path relative
> to $1, but receives a path relative to the current directory.  Redirect
> the output outside the subshell to bypass the "cd $1".
> 
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  tests/docker/Makefile.include | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
> index 2fd2ca3..d0ad36c 100644
> --- a/tests/docker/Makefile.include
> +++ b/tests/docker/Makefile.include
> @@ -21,10 +21,10 @@ IMAGES ?= %
>  make-archive-maybe = $(if $(wildcard $1/*), \
>  	$(call quiet-command, \
>  		(cd $1; if git diff-index --quiet HEAD -- &>/dev/null; then \
> -			git archive -1 HEAD --format=tar.gz -o $2; \
> +			git archive -1 HEAD --format=tar.gz; \
>  		else \
> -			git archive -1 $$(git stash create) --format=tar.gz -o $2; \
> -		fi), \
> +			git archive -1 $$(git stash create) --format=tar.gz; \
> +		fi) > $2, \
>  		"  ARCHIVE $(notdir $2)"))
>  
>  CUR_TIME := $(shell date +%Y-%m-%d-%H.%M.%S.$$$$)
> -- 
> 1.8.3.1
> 
> 

I think this is better than my patch because it also reduces the duplication
between the two "git archive" commands a little. So I'm dropping mine.

Fam

  reply	other threads:[~2016-06-07  2:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-06 14:46 [Qemu-devel] [PATCH 0/6] Small tests/docker fixes Paolo Bonzini
2016-06-06 14:46 ` [Qemu-devel] [PATCH 1/6] tests/docker: fix make-archive-maybe Paolo Bonzini
2016-06-07  2:41   ` Fam Zheng [this message]
2016-06-06 14:46 ` [Qemu-devel] [PATCH 2/6] tests/docker: make test-full build all targets, not none Paolo Bonzini
2016-06-06 14:46 ` [Qemu-devel] [PATCH 3/6] tests/docker: fix test-mingw Paolo Bonzini
2016-06-06 14:46 ` [Qemu-devel] [PATCH 4/6] tests/docker: remove unused feature "ccache" Paolo Bonzini
2016-06-06 14:46 ` [Qemu-devel] [PATCH 5/6] tests/docker: support travis test with fedora image Paolo Bonzini
2016-06-06 14:46 ` [Qemu-devel] [PATCH 6/6] tests/docker: build all targets in test-clang Paolo Bonzini
2016-06-07  3:34 ` [Qemu-devel] [PATCH 0/6] Small tests/docker fixes 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=20160607024130.GA2273@ad.usersys.redhat.com \
    --to=famz@redhat.com \
    --cc=pbonzini@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).