Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Robert Yang <liezhi.yang@windriver.com>
To: Costin Constantin <costin.c.constantin@intel.com>,
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] meta/testimage.bbclass: corrected the bug that prevented test cases to be loaded from layers other than meta when using TEST_SUITES = "auto"
Date: Tue, 9 Jun 2015 17:59:53 +0800	[thread overview]
Message-ID: <5576B919.9010808@windriver.com> (raw)
In-Reply-To: <1433843066-7433-1-git-send-email-costin.c.constantin@intel.com>


Hi Costin,

I think that the subject line should be less than 50 characters, usually.

// Robert

On 06/09/2015 05:44 PM, Costin Constantin wrote:
> Signed-off-by: Costin Constantin <costin.c.constantin@intel.com>
> ---
>   meta/classes/testimage.bbclass | 9 +++++----
>   1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
> index 4074ff7..aadee45 100644
> --- a/meta/classes/testimage.bbclass
> +++ b/meta/classes/testimage.bbclass
> @@ -88,19 +88,20 @@ def get_tests_list(d, type="runtime"):
>
>       if "auto" in testsuites:
>           def add_auto_list(path):
> -            if not os.path.exists(os.path.join(path, '__init__.py')):
> -                bb.fatal('Tests directory %s exists but is missing __init__.py' % path)
>               files = sorted([f for f in os.listdir(path) if f.endswith('.py') and not f.startswith('_')])
>               for f in files:
>                   module = 'oeqa.' + type + '.' + f[:-3]
>                   if module not in testslist:
>                       testslist.append(module)
> -
> +        tests_found = False
>           for p in bbpath:
>               testpath = os.path.join(p, 'lib', 'oeqa', type)
>               bb.debug(2, 'Searching for tests in %s' % testpath)
> -            if os.path.exists(testpath):
> +            if os.path.exists(os.path.join(testpath, '__init__.py')):
>                   add_auto_list(testpath)
> +                tests_found = True
> +        if not tests_found:
> +            bb.fatal('Couldn\'t find any test files inside  meta*/lib/oeqa/runtime or meta*/lib/oeqa/sdk directories.')
>
>       return testslist
>
>


      reply	other threads:[~2015-06-09 10:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-09  9:44 [PATCH] meta/testimage.bbclass: corrected the bug that prevented test cases to be loaded from layers other than meta when using TEST_SUITES = "auto" Costin Constantin
2015-06-09  9:59 ` Robert Yang [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=5576B919.9010808@windriver.com \
    --to=liezhi.yang@windriver.com \
    --cc=costin.c.constantin@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox