All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Cristian Iorga <cristian.iorga@intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] testimage: regenerate rootfs before testing
Date: Thu, 23 Apr 2015 10:20:16 +0100	[thread overview]
Message-ID: <2822728.eQSAVmuFvh@peggleto-mobl.ger.corp.intel.com> (raw)
In-Reply-To: <1429771148-1545-1-git-send-email-cristian.iorga@intel.com>

On Thursday 23 April 2015 09:39:08 Cristian Iorga wrote:
> While starting a test with testimage, changes
> of the image under test don't trigger a rebuild,
> so fix that.
> 
> Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
> ---
>  meta/classes/testimage.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
> index dc163c7..ce7f5c1 100644
> --- a/meta/classes/testimage.bbclass
> +++ b/meta/classes/testimage.bbclass
> @@ -53,7 +53,7 @@ TESTIMAGELOCK_qemuall = ""
>  python do_testimage() {
>      testimage_main(d)
>  }
> -addtask testimage
> +addtask testimage after do_rootfs
>  do_testimage[nostamp] = "1"
>  do_testimage[depends] += "${TESTIMAGEDEPENDS}"
>  do_testimage[lockfiles] += "${TESTIMAGELOCK}"

I can't remember for certain, but I suspect the lack of this dependency was 
intentional, so that you could e.g. copy in an image built elsewhere and run 
tests on it. Maybe we can take the decision we don't need that, but it should 
be a conscious decision.

On the other hand, testimage-auto.bbclass does set up this dependency, 
although it also adds a dependency from do_build on do_testimage as well. 
There is a bug open to integrate testimage-auto.bbclass with testimage.bbclass 
as well (https://bugzilla.yoctoproject.org/show_bug.cgi?id=6155).

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


  reply	other threads:[~2015-04-23  9:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-23  6:39 [PATCH] testimage: regenerate rootfs before testing Cristian Iorga
2015-04-23  9:20 ` Paul Eggleton [this message]
2015-04-23 13:02   ` Burton, Ross
2015-04-23 13:25     ` Paul Eggleton
2015-04-23 18:47       ` Richard Purdie
2015-05-01 20:24         ` Burton, Ross

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=2822728.eQSAVmuFvh@peggleto-mobl.ger.corp.intel.com \
    --to=paul.eggleton@linux.intel.com \
    --cc=cristian.iorga@intel.com \
    --cc=openembedded-core@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.