Re: [OE-core] [PATCH 0/3] oeqa/runtime: Import custom targets

2017-03-27 Thread Mariano Lopez


On 27/03/17 07:38, Richard Purdie wrote:
> On Fri, 2017-03-24 at 15:06 -0700, mariano.lo...@linux.intel.com wrote:
>> From: Mariano Lopez 
>>
>> This series allows to import custom targets to be used with runtime
>> testing.
>> Now is possible to have a target in /lib/oeqa/core/target and
>> testimage and testexport can use such target using TEST_TARGET
>> variable.
>>
>> To register a custom target you just need use decorate a target class
>> with
>> registerTarget, and set "targetName" attribute to the name that will
>> be used
>> by TEST_TARGET variable.
> Unfortunately something about this series break oe-selftest:
>
> https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/229/st
> eps/Running%20oe-selftest/logs/stdio
>
> It doesn't do it in isolation, that test run by itself is fine. When
> run as part of oe-selftest it breaks though. I did bisect it down to
> this series and things have all built fine after I dropped these 3
> patches.
>
> So we'll have to figure out what is happening here...

I'm very sorry that you have to do a bisect to find this out :(

I did run selftest in my workstation to avoid this thing but it seems
it wasn't enough.

The problem is when importing the modules with
oe-test (outside bitbake). I did check it with python 3.4 but I didn't
test it with 3.5 so, I'll start with that.

Regards,
Mariano
>
> Cheers,
>
> Richard

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 0/3] oeqa/runtime: Import custom targets

2017-03-27 Thread Richard Purdie
On Fri, 2017-03-24 at 15:06 -0700, mariano.lo...@linux.intel.com wrote:
> From: Mariano Lopez 
> 
> This series allows to import custom targets to be used with runtime
> testing.
> Now is possible to have a target in /lib/oeqa/core/target and
> testimage and testexport can use such target using TEST_TARGET
> variable.
> 
> To register a custom target you just need use decorate a target class
> with
> registerTarget, and set "targetName" attribute to the name that will
> be used
> by TEST_TARGET variable.

Unfortunately something about this series break oe-selftest:

https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/229/st
eps/Running%20oe-selftest/logs/stdio

It doesn't do it in isolation, that test run by itself is fine. When
run as part of oe-selftest it breaks though. I did bisect it down to
this series and things have all built fine after I dropped these 3
patches.

So we'll have to figure out what is happening here...

Cheers,

Richard
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 0/3] oeqa/runtime: Import custom targets

2017-03-24 Thread mariano . lopez
From: Mariano Lopez 

This series allows to import custom targets to be used with runtime testing.
Now is possible to have a target in /lib/oeqa/core/target and
testimage and testexport can use such target using TEST_TARGET variable.

To register a custom target you just need use decorate a target class with
registerTarget, and set "targetName" attribute to the name that will be used
by TEST_TARGET variable.

The following changes since commit 9fe7a69535f9443175da8289633a761f58c372ff:

  bitbake: bitbake-diffsigs: Add debug support (2017-03-23 13:19:50 +)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib mariano/oeqa_target
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=mariano/oeqa_target

Mariano Lopez (3):
  oeqa: Remove __init__.py files.
  oeqa/target: Add decorator to register targets
  oeqa/runtime/context.py: Add automatic target loading

 meta/classes/testexport.bbclass|  19 +++-
 meta/classes/testimage.bbclass |   4 +-
 meta/lib/oeqa/core/__init__.py |   0
 meta/lib/oeqa/core/cases/__init__.py   |   0
 .../oeqa/core/decorator/{__init__.py => base.py}   |   0
 meta/lib/oeqa/core/decorator/data.py   |   3 +-
 meta/lib/oeqa/core/decorator/depends.py|   4 +-
 meta/lib/oeqa/core/decorator/oeid.py   |   2 +-
 meta/lib/oeqa/core/decorator/oetag.py  |   2 +-
 meta/lib/oeqa/core/decorator/oetimeout.py  |   2 +-
 meta/lib/oeqa/core/loader.py   |   2 +-
 meta/lib/oeqa/core/target/__init__.py  |  33 ---
 meta/lib/oeqa/core/target/base.py  |  82 
 meta/lib/oeqa/core/target/qemu.py  |   7 +-
 meta/lib/oeqa/core/target/ssh.py   |   6 +-
 meta/lib/oeqa/core/tests/__init__.py   |   0
 meta/lib/oeqa/core/utils/__init__.py   |   0
 meta/lib/oeqa/runtime/context.py   | 109 +
 meta/lib/oeqa/runtime/decorator/package.py |   2 +-
 meta/lib/oeqa/runtime/utils/__init__.py|   0
 meta/lib/oeqa/sdk/__init__.py  |   0
 meta/lib/oeqa/sdk/utils/__init__.py|   0
 meta/lib/oeqa/sdkext/__init__.py   |   0
 23 files changed, 142 insertions(+), 135 deletions(-)
 delete mode 100644 meta/lib/oeqa/core/__init__.py
 delete mode 100644 meta/lib/oeqa/core/cases/__init__.py
 rename meta/lib/oeqa/core/decorator/{__init__.py => base.py} (100%)
 delete mode 100644 meta/lib/oeqa/core/target/__init__.py
 create mode 100644 meta/lib/oeqa/core/target/base.py
 delete mode 100644 meta/lib/oeqa/core/tests/__init__.py
 delete mode 100644 meta/lib/oeqa/core/utils/__init__.py
 delete mode 100644 meta/lib/oeqa/runtime/utils/__init__.py
 delete mode 100644 meta/lib/oeqa/sdk/__init__.py
 delete mode 100644 meta/lib/oeqa/sdk/utils/__init__.py
 delete mode 100644 meta/lib/oeqa/sdkext/__init__.py

-- 
2.10.2

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core