Re: [OE-core] [PATCH 2/2] linux-yocto: Add scsi_debug module when ptest is in DISTRO_FEATURES

2019-06-18 Thread Mariano Lopez
On 6/15/19 8:02 PM, Bruce Ashfield wrote: On Sat, Jun 15, 2019 at 3:47 PM Mariano Lopez wrote: On 6/15/19 10:15 AM, Richard Purdie wrote: On Thu, 2019-06-13 at 22:32 -0500, Mariano López wrote: util-linux ptest requires the scsi_debug module to perform eject/mount tests. This will

Re: [OE-core] [PATCH 2/2] linux-yocto: Add scsi_debug module when ptest is in DISTRO_FEATURES

2019-06-15 Thread Mariano Lopez
On 6/15/19 10:15 AM, Richard Purdie wrote: On Thu, 2019-06-13 at 22:32 -0500, Mariano López wrote: util-linux ptest requires the scsi_debug module to perform eject/mount tests. This will conditionally add scsi_debug module when ptest is in DISTRO_FEATURES. This doesn't include linux-yocto-tiny

Re: [OE-core] [PATCH v4 2/4] ptest.bbclass: Add feature to populate a binary directory

2019-04-13 Thread Mariano Lopez
On 4/11/19 3:11 PM, Richard Purdie wrote: On Tue, 2019-04-09 at 00:44 -0500, Mariano Lopez wrote: This adds the functionality to create a binary directory within PTEST_PATH directory. This directory will be populated with symlinks pointing to the binaries installed by the package and then

[OE-core] [PATCH 1/1] ptest.bbclass: Use d.getVar instead of os.environ

2019-04-13 Thread Mariano Lopez
[YOCTO #12597] [YOCTO #13238] Signed-off-by: Mariano Lopez --- meta/classes/ptest.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index e87a9659cb..936bf82736 100644 --- a/meta/classes/ptest.bbclass +++ b

[OE-core] [PATCH v4 3/4] util-linux: Use PTEST binary directory

2019-04-08 Thread Mariano Lopez
for util-linux. [YOCTO #13238] Signed-off-by: Mariano Lopez --- meta/recipes-core/util-linux/util-linux.inc | 5 +++-- meta/recipes-core/util-linux/util-linux/run-ptest | 4 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/util-linux/util-linux.inc b

[OE-core] [PATCH v4 2/4] ptest.bbclass: Add feature to populate a binary directory

2019-04-08 Thread Mariano Lopez
use the expected binaries. To enable this feature just add PTEST_BINDIR = "1" to the recipe. [YOCTO #12597] [YOCTO #13238] Signed-off-by: Mariano Lopez --- meta/classes/ptest.bbclass | 32 1 file changed, 32 insertions(+) diff --git a/meta/classes/pte

[OE-core] [PATCH v4 4/4] busybox: Use PTEST binary directory

2019-04-08 Thread Mariano Lopez
] Signed-off-by: Mariano Lopez --- meta/recipes-core/busybox/busybox.inc | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index c9d25ff1ca..174ce5a8c0 100644 --- a/meta/recipes-core

[OE-core] [PATCH v4 1/4] update-alternatives.bbclass: Add function to get metadata

2019-04-08 Thread Mariano Lopez
This adds update_alternatives_alt_targets function to get the metadata for a package. This is for code reuse because the metadata would help other classes that needs to be aware of how update-alternatives modify the final package. [YOCTO #12597] [YOCTO #13238] Signed-off-by: Mariano Lopez

[OE-core] [PATCH v4 0/4] Feature to use symbolic links to binaries for ptest

2019-04-08 Thread Mariano Lopez
XML catalogue to use (2019-04-03 14:56:27 +0100) are available in the Git repository at: git://github.com/justanotherboy/poky bug13238v4 https://github.com/justanotherboy/poky/tree/bug13238v4 Mariano Lopez (4): update-alternatives.bbclass: Add function to get metadata ptest.bbclass: Add f

Re: [OE-core] [PATCH v2 1/4] update-alternatives.bbclass: Add function to get metadata

2019-04-07 Thread Mariano Lopez
On 4/7/19 4:32 PM, Richard Purdie wrote: On Sun, 2019-04-07 at 12:15 -0500, Mariano Lopez wrote: - -# Default to generate shell script.. eventually we may want to change this... -alt_target = os.path.normpath(alt_target) - -alt_setup_links += '\tu

[OE-core] [PATCH v3 2/4] ptest.bbclass: Add feature to populate a binary directory

2019-04-07 Thread Mariano Lopez
use the expected binaries. To enable this feature just add PTEST_BINDIR = "1" to the recipe. [YOCTO #12597] [YOCTO #13238] Signed-off-by: Mariano Lopez --- meta/classes/ptest.bbclass | 31 +++ 1 file changed, 31 insertions(+) diff --git a/meta/classes/pte

[OE-core] [PATCH v3 4/4] busybox: Use PTEST binary directory

2019-04-07 Thread Mariano Lopez
] Signed-off-by: Mariano Lopez --- meta/recipes-core/busybox/busybox.inc | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index c9d25ff1ca..174ce5a8c0 100644 --- a/meta/recipes-core

[OE-core] [PATCH v3 1/4] update-alternatives.bbclass: Add function to get metadata

2019-04-07 Thread Mariano Lopez
This adds update_alternatives_alt_targets function to get the metadata for a package. This is for code reuse because the metadata would help other classes that needs to be aware of how update-alternatives modify the final package. [YOCTO #12597] [YOCTO #13238] Signed-off-by: Mariano Lopez

[OE-core] [PATCH v3 3/4] util-linux: Use PTEST binary directory

2019-04-07 Thread Mariano Lopez
for util-linux. [YOCTO #13238] Signed-off-by: Mariano Lopez --- meta/recipes-core/util-linux/util-linux.inc | 5 +++-- meta/recipes-core/util-linux/util-linux/run-ptest | 4 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/util-linux/util-linux.inc b

Re: [OE-core] [PATCH 0/3] Feature to use symbolic links to binaries for ptest

2019-04-07 Thread Mariano Lopez
series Thanks again Ross! On Fri, Apr 5, 2019 at 1:49 PM Mariano Lopez wrote: > Sure, can you integrate this in the while I work on the busybox one? I'll > do it as part of bug 12597 that is also assigned to me > > Mariano > > On Fri, Apr 5, 2019 at 9:37 AM Burton, Ross w

[OE-core] [PATCH v2 3/4] util-linux: Use PTEST binary directory

2019-04-07 Thread Mariano Lopez
for util-linux. [YOCTO #13238] Signed-off-by: Mariano Lopez --- meta/recipes-core/util-linux/util-linux.inc | 5 +++-- meta/recipes-core/util-linux/util-linux/run-ptest | 4 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/util-linux/util-linux.inc b

[OE-core] [PATCH v2 4/4] busybox: Use PTEST binary directory

2019-04-07 Thread Mariano Lopez
] Signed-off-by: Mariano Lopez --- meta/recipes-core/busybox/busybox.inc | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index c9d25ff1ca..174ce5a8c0 100644 --- a/meta/recipes-core

[OE-core] [PATCH v2 1/4] update-alternatives.bbclass: Add function to get metadata

2019-04-07 Thread Mariano Lopez
This adds update_alternatives_alt_targets function to get the metadata for a package. This is for code reuse because the metadata would help other classes that needs to be aware of how update-alternatives modify the final package. [YOCTO #12597] [YOCTO #13238] Signed-off-by: Mariano Lopez

[OE-core] [PATCH v2 0/4] Feature to use symbolic links to binaries for ptest

2019-04-07 Thread Mariano Lopez
anotherboy/poky/tree/bug13238 Mariano Lopez (4): update-alternatives.bbclass: Add function to get metadata ptest.bbclass: Add feature to populate a binary directory util-linux: Use PTEST binary directory busybox: Use PTEST binary directory meta/classes/ptest.bbclass

[OE-core] [PATCH v2 2/4] ptest.bbclass: Add feature to populate a binary directory

2019-04-07 Thread Mariano Lopez
use the expected binaries. To enable this feature just add PTEST_BINDIR = "1" to the recipe. [YOCTO #12597] [YOCTO #13238] Signed-off-by: Mariano Lopez --- meta/classes/ptest.bbclass | 31 +++ 1 file changed, 31 insertions(+) diff --git a/meta/classes/pte

Re: [OE-core] [PATCH 0/3] Feature to use symbolic links to binaries for ptest

2019-04-05 Thread Mariano Lopez
; On Fri, 5 Apr 2019 at 15:27, Mariano Lopez > wrote: > > > > Some binaries are renamed by update-alternatives class at build time > > and some ptest run against a binary belonging to another package. Take > > for example busybox or util-linux. > > > > This ser

[OE-core] [PATCH 3/3] util-linux: Use PTEST binary directory

2019-04-05 Thread Mariano Lopez
for util-linux. [YOCTO #13238] Signed-off-by: Mariano Lopez --- meta/recipes-core/util-linux/util-linux.inc | 5 +++-- meta/recipes-core/util-linux/util-linux/run-ptest | 4 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/util-linux/util-linux.inc b

[OE-core] [PATCH 2/3] ptest.bbclass: Add feature to populate a binary directory

2019-04-05 Thread Mariano Lopez
, and base_sbindir and create symlinks in PTEST_BINDIR_PATH. To enable this feature just add PTEST_BINDIR = "1" to the recipe. [YOCTO #13238] Signed-off-by: Mariano Lopez --- meta/classes/ptest.bbclass | 52 ++ 1 file changed, 52 insertions(+) di

[OE-core] [PATCH 0/3] Feature to use symbolic links to binaries for ptest

2019-04-05 Thread Mariano Lopez
use (2019-04-03 14:56:27 +0100) are available in the Git repository at: git://github.com/justanotherboy/poky bug12597 https://github.com/justanotherboy/poky/tree/bug12597 Mariano Lopez (3): update-alternatives.bbclass: Add function to get renamed binaries ptest.bbclass: Add feature to

[OE-core] [PATCH 1/3] update-alternatives.bbclass: Add function to get renamed binaries

2019-04-05 Thread Mariano Lopez
#13238] Signed-off-by: Mariano Lopez --- meta/classes/update-alternatives.bbclass | 43 +--- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/meta/classes/update-alternatives.bbclass b/meta/classes/update-alternatives.bbclass index 537e85d9a3..d601dfc700 100644

[OE-core] [PATCH 0/1] package_ipk.bbclass: Replace empty lines in DESCRIPTION with '.'

2017-04-05 Thread mariano . lopez
From: Mariano Lopez This will deal with empty lines in DESCRIPTION while creating ipk packages. Changes in v2: - Firts version of this patch would fail do_package_write_ipk task if found an empty line in DESCRIPTION, this version will replace an empty line with a '.' as suggest

[OE-core] [PATCH 1/1] package_ipk.bbclass: Replace empty lines in DESCRIPTION with '.'

2017-04-05 Thread mariano . lopez
From: Mariano Lopez opkg uses empty lines as separator for next package and if an ipk file was packaged with empty lines in DESCRIPTION opkg won't be able to handle such ipk file, this happens at execution time. This commit will replace empty lines in DESCRIPTION with a '.' whe

[OE-core] [PATCH 1/1] oeqa/runtime/cases: Migrate underscore cases

2017-03-30 Thread mariano . lopez
From: Mariano Lopez There were two missing cases to be migrated to the new framework: _qemutiny and _ptest. qemutiny was straightforward. ptest on the other hand wasn't working even in previous releases; it has been migrated from smart to dnf, and how ptest packages are gathered

[OE-core] [PATCHv2 1/1] oeqa/core/loader.py: Do not import underscore modules by default

2017-03-27 Thread mariano . lopez
From: Mariano Lopez Underscore modules are meant to be run only when manually added to the test suite, so far another mechanisms are in place to make this happen with runtime, sdk, and esdk (mostly in test* bbclasses). This will add such functionality in the core framework so other specific

[OE-core] [PATCHv2 0/1] oeqa/core/loader.py: Do not import underscore modules by default

2017-03-27 Thread mariano . lopez
From: Mariano Lopez Changes in v2: - Rebase to master. - Fix how bug number was specified to make patchtest happy. The following changes since commit f5187871ce03fc24cb0017cff1089a288f50a24f: classes: Replace "if test" file tests with POSIX file tests (2017-03-27 11:08:34 +

[OE-core] [PATCH 1/1] oeqa/core/loader.py: Do not import underscore modules by default

2017-03-27 Thread mariano . lopez
From: Mariano Lopez Underscore modules are meant to be run only when manually added to the test suite, so far another mechanisms are in place to make this happen with runtime, sdk, and esdk (mostly in test* bbclasses). This will add such functionality in the core framework so other specific

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 ta

[OE-core] [PATCH 3/3] oeqa/runtime/context.py: Add automatic target loading

2017-03-24 Thread mariano . lopez
From: Mariano Lopez This adds automatic target loading for runtime testing. It will look for targets in 'lib/oeqa/core/target' in every layer used in the build. Introspection was used to achieve this functionality, the idea is to load all target modules and they will be regis

[OE-core] [PATCH 1/3] oeqa: Remove __init__.py files.

2017-03-24 Thread mariano . lopez
From: Mariano Lopez >From python 3.3 and above, if a module path contains an __init__.py file, just that path will be checked for module imports; this behavior makes impossible to extend core functionality using other layers with the current __init__.py files. You can check a more detai

[OE-core] [PATCH 2/3] oeqa/target: Add decorator to register targets

2017-03-24 Thread mariano . lopez
From: Mariano Lopez This adds a way to register targets that can be used with runtime testing. To do this just decorate a target class with registerTarget, and set "targetName" attribute to the name that will be used by TEST_TARGET variable. Signed-off-by: Mariano Lopez --- meta/lib

[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

[OE-core] [PATCHv2 0/2] OEQA loader improvment

2017-02-27 Thread mariano . lopez
From: Mariano Lopez The first adds more verbosity when a class doesn't inherit from the expected test class. The second patch raises an error when trying to import a test with the same module name as a built-in module. Change in v2: - Rebased to current master The following changes

[OE-core] [PATCHv2 2/2] oeqa/core/loader.py: Avoid importing tests with built-ins name

2017-02-27 Thread mariano . lopez
From: Mariano Lopez If importing a test with the same name as a built-in module, it will silently import the built-in and check for tests in built-in module. This happened with syslog module in debian based machines, so add a raise to avoid this behavior. [YOCTO #10978] Signed-off-by: Mariano

[OE-core] [PATCHv2 1/2] oeqa/core/loader.py: Give meaningful error when failed to load classes

2017-02-27 Thread mariano . lopez
From: Mariano Lopez With this we get the class that is actually having the problem, not just a TypeError with an unknown class causing the error. Signed-off-by: Mariano Lopez --- meta/lib/oeqa/core/loader.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/lib

[OE-core] [PATCH 1/1] selftest/eSDK.py: Cleanup when there is an error in setUpClass

2017-02-22 Thread mariano . lopez
From: Mariano Lopez Lately autobuilders are experiencing hangs with selftest, it seems it is cause if an error happens in setUpClass method of oeSDKExtSelfTest class because HTTP server keeps running in background. This patch will ensure tearDownClass will be run if there is an error in

[OE-core] [PATCHv2 2/2] selftest: Optimize get_bb_var use

2017-02-21 Thread mariano . lopez
From: Mariano Lopez get_bb_var calls bitbake every time it is used and every call would take about 7 seconds. There are tests that calls get_bb_var several times when they can use get_bb_vars. Also there are tests that calls it to fetch the same variable over and over again. This will optimize

[OE-core] [PATCHv2 1/2] selftest: Avoid sstate corruption by calling cleansstate

2017-02-21 Thread mariano . lopez
From: Mariano Lopez Currently selftest doesn't use sstates because some tests clean sstate cache; using sstates would give a performance boost instead of building everything from scratch. With this sstates are not corrupted using different methods depending on tests: devtool: These

[OE-core] [PATCHv2 0/2] Improvements to oe-selftest

2017-02-21 Thread mariano . lopez
From: Mariano Lopez This series includes to main improvements; - Remove use of cleansstate tasks from tests in order to use shared states in the autobuilders - Optimize use of get_bb_var to avoid calling bitbake -e over and over again This has been tested in local autobuilders. This series

Re: [OE-core] [PATCHv2 1/1] insane.bbclass: Add missing dependencies

2017-02-21 Thread Mariano Lopez
On 15/02/17 22:02, Richard Purdie wrote: > On Fri, 2017-02-10 at 14:19 -0600, mariano.lo...@linux.intel.com wrote: >> From: Mariano Lopez >> >> package_qa task requires some tools installed in sysroot; with >> the introduction of recipe specific sysroot this ta

[OE-core] [PATCHv3 1/1] insane.bbclass: Add missing dependencies

2017-02-21 Thread mariano . lopez
From: Mariano Lopez package_qa task requires some tools installed in sysroot; with the introduction of recipe specific sysroot this task won't have such tools installed if it's forced to run. Signed-off-by: Mariano Lopez --- meta/classes/insane.bbclass | 3 +++ 1 file changed, 3

[OE-core] [PATCHv3 0/1] insane.bbclass: Add missing dependencies

2017-02-21 Thread mariano . lopez
From: Mariano Lopez Changes in v2: - Add binutils as dependency too Changes in v3: - Remove prepare_recipe_sysroot task dependency as recommended by Richard The following changes since commit e436a6398684d2872cb541f1cfb0f67b3618d15a: layer.conf: bump version for change in eSDK selftest

[OE-core] [PATCH 1/1] oeqa/runtime/context.py: Fix use of getTarget() with testexport

2017-02-21 Thread mariano . lopez
From: Mariano Lopez The idea on getTarget is to use kwargs to send custom variables to different targets, instead of this, a new variable was added (just used for custom targets) and this broke testexport. So in order to fix it, just add the custom variable to kwargs. This fixes the use of

[OE-core] [PATCH 2/2] oeqa/core/loader.py: Avoid importing tests with built-ins name

2017-02-10 Thread mariano . lopez
From: Mariano Lopez If importing a test with the same name as a built-in module, it will silently import the built-in and check for tests in built-in module. This happened with syslog module in debian based machines, so add a raise to avoid this behavior. [YOCTO #10978] Signed-off-by: Mariano

[OE-core] [PATCH 1/2] oeqa/core/loader.py: Give meaningful error when failed to load classes

2017-02-10 Thread mariano . lopez
From: Mariano Lopez With this we get the class that is actually having the problem, not just a TypeError with an unknown class causing the error. Signed-off-by: Mariano Lopez --- meta/lib/oeqa/core/loader.py | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meta/lib

[OE-core] [PATCH 0/2] OEQA loader improvement

2017-02-10 Thread mariano . lopez
From: Mariano Lopez The first adds more verbosity when a class doesn't inherit from the expected test class. The second patch raises an error when trying to import a test with the same module name as a built-in module. The following changes since commit e758547db9048d4aa1c1415d6af8072f519

[OE-core] [PATCHv2 1/1] insane.bbclass: Add missing dependencies

2017-02-10 Thread mariano . lopez
From: Mariano Lopez package_qa task requires some tools installed in sysroot; with the introduction of recipe specific sysroot this task won't have such tools installed if it's forced to run. Signed-off-by: Mariano Lopez --- meta/classes/insane.bbclass | 5 - 1 file changed, 4

[OE-core] [PATCHv2 0/1] insane.bbclass: Add missing dependencies

2017-02-10 Thread mariano . lopez
From: Mariano Lopez Changes in v2: - Add binutils as dependency too The following changes since commit a624cf7f95c8cf4ff764cc997fd1db4601b97dcc: oeqa/selftest/pkgdata: use m4 instead of bash (2017-02-07 14:50:10 +) are available in the git repository at: git://git.yoctoproject.org

[OE-core] [PATCH 1/1] testimage.bbclass: Add check for empty test suite

2017-02-09 Thread mariano . lopez
From: Mariano Lopez If for some reason (most likely incorrect TEST_SUITES var) you end with an empty test suite, testimage will start the target (qemu by default) and will run an empty suite, so better have a check before starting the target. [YOCTO #10979] Signed-off-by: Mariano Lopez

[OE-core] [PATCH 2/2] selftest: Optimize get_bb_var use

2017-02-09 Thread mariano . lopez
From: Mariano Lopez get_bb_var calls bitbake every time it is used and every call would take about 7 seconds. There are tests that calls get_bb_var several times when they can use get_bb_vars. Also there are tests that calls it to fetch the same variable over and over again. This will optimize

[OE-core] [PATCH 1/2] selftest: Avoid sstate corruption by calling cleansstate

2017-02-09 Thread mariano . lopez
From: Mariano Lopez Currently selftest doesn't use sstates because some tests clean sstate cache; using sstates would give a performance boost instead of building everything from scratch. With this sstates are not corrupted using different methods depending on tests: devtool: These

[OE-core] [PATCH 0/2] Improvements to oe-selftest

2017-02-09 Thread mariano . lopez
From: Mariano Lopez This series includes to main improvements; - Remove use of cleansstate tasks from tests in order to use shared states in the autobuilders - Optimize use of get_bb_var to avoid calling bitbake -e over and over again This has been tested in local autobuilders. This series

[OE-core] [PATCH 1/1] insane.bbclass: Add prepare_recipe_sysroot dependency for package_qa

2017-02-07 Thread mariano . lopez
From: Mariano Lopez package_qa task requires some tools installed in sysroot; with the introduction of recipe specific sysroot this task won't have such tools installed if it's forced to run. Signed-off-by: Mariano Lopez --- meta/classes/insane.bbclass | 2 +- 1 file changed, 1

Re: [OE-core] do_populate_cve_db: Error in executing cve-check-update

2017-02-07 Thread Mariano Lopez
On 06/02/17 09:17, Jussi Kukkonen wrote: > > > On 6 February 2017 at 16:56, Burton, Ross > wrote: > > > On 6 February 2017 at 14:43, Sona Sarmadi > wrote: > > bbdebug 2 "Updating cve-check-tool database located in >

[OE-core] [PATCHv3 4/5] oeqa/core/context.py: Add validation for run-tests option

2017-01-30 Thread mariano . lopez
From: Aníbal Limón The run-tests option is optional so if isn't specified set to None instead of crash on split(). Signed-off-by: Aníbal Limón --- meta/lib/oeqa/core/context.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeq

[OE-core] [PATCHv3 5/5] oeqa/runtime/cases: Rename syslog module to oe_syslog

2017-01-30 Thread mariano . lopez
From: Aníbal Limón Debian based distros has a builtin syslog module so when try to load tests using unittest it references the builtin module instead of runtime/cases. [YOCTO #10964] Signed-off-by: Aníbal Limón Signed-off-by: Mariano Lopez --- meta/classes/testimage.bbclass

[OE-core] [PATCHv3 2/5] runtime/cases/smart.py: Check for IMAGE_PKGTYPE instead of PACKAGE_CLASSES

2017-01-30 Thread mariano . lopez
From: Mariano Lopez smart test requires to build the image using rpm packages, this check was included, but it checked for PACKAGE_CLASSES=='package_rpm', and this is not true when building packages for rpm and deb/ipk. So this would check IMAGE_PKGTYPE instead. [YOCTO #10964] Sig

[OE-core] [PATCHv3 3/5] testimage.bbclass: Allow to run tests on autobuilder's images

2017-01-30 Thread mariano . lopez
From: Mariano Lopez With the change to the new framework data store dependecy was removed, instead a new file is generated and used in testimage. When testing builds from the autobuilders the test data values are from the autobuilder, including the paths. Some tests require paths to current

[OE-core] [PATCHv3 1/5] runtime/cases: Fix case numbers, missing cases and unused classes

2017-01-30 Thread mariano . lopez
From: Mariano Lopez connman: oeRuntimeTest class is not used anymore as part of runtime migration, this particular case was missed, so fix it. gcc: Removed unneded lines. multilib: fixed case number. syslog: added a missing test. [YOCTO #10964] Signed-off-by: Mariano Lopez Signed-off-by

[OE-core] [PATCHv2 3/5] testimage.bbclass: Allow to run tests on autobuilder's images

2017-01-27 Thread mariano . lopez
From: Mariano Lopez With the change to the new framework data store dependecy was removed, instead a new file is generated and used in testimage. When testing builds from the autobuilders the test data values are from the autobuilder, including the paths. Some tests require paths to current

[OE-core] [PATCHv2 5/5] oeqa/runtime/cases: Rename syslog module to oe_syslog

2017-01-27 Thread mariano . lopez
From: Aníbal Limón Debian based distros has a builtin syslog module so when try to load tests using unittest it references the builtin module instead of runtime/cases. [YOCTO ##10964] Signed-off-by: Aníbal Limón Signed-off-by: Mariano Lopez --- meta/classes/testimage.bbclass

[OE-core] [PATCHv2 1/5] runtime/cases: Fix case numbers, missing cases and unused classes

2017-01-27 Thread mariano . lopez
From: Mariano Lopez connman: oeRuntimeTest class is not used anymore as part of runtime migration, this particular case was missed, so fix it. gcc: Removed unneded lines. multilib: fixed case number. syslog: added a missing test. [YOCTO #10964] Signed-off-by: Mariano Lopez Signed-off-by

[OE-core] [PATCHv2 4/5] oeqa/core/context.py: Add validation for run-tests option

2017-01-27 Thread mariano . lopez
From: Aníbal Limón The run-tests option is optional so if isn't specified set to None instead of crash on split(). Signed-off-by: Aníbal Limón --- meta/lib/oeqa/core/context.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeq

[OE-core] [PATCHv2 0/5] Fix bugs found within runtime testing

2017-01-27 Thread mariano . lopez
From: Mariano Lopez This will fix some bugs found in testimage when executing tests from images downloaded from the autobuilders. Changes in v2: - Fix some test cases that were changed during the migration. - Add createrepo-native as dependency of test image. - Fix TEST_SUITES in core-image

[OE-core] [PATCHv2 2/5] runtime/cases/smart.py: Check for IMAGE_PKGTYPE instead of PACKAGE_CLASSES

2017-01-27 Thread mariano . lopez
From: Mariano Lopez smart test requires to build the image using rpm packages, this check was included, but it checked for PACKAGE_CLASSES=='package_rpm', and this is not true when building packages for rpm and deb/ipk. So this would check IMAGE_PKGTYPE instead. [YOCTO #10964] Sig

Re: [OE-core] [PATCH 1/1] package_ipk.bbclass: Add check for empty lines in DESCRIPTION

2017-01-26 Thread Mariano Lopez
On 25/01/17 05:56, Richard Purdie wrote: > On Tue, 2017-01-24 at 11:52 -0700, Christopher Larson wrote: >> On Tue, Jan 24, 2017 at 1:37 AM, >> wrote: >>> From: Mariano Lopez >>> >>> opkg uses empty lines as separator for next package and if an ipk

[OE-core] [PATCH 2/3] runtime/cases/smart.py: Check for IMAGE_PKGTYPE instead of PACKAGE_CLASSES

2017-01-25 Thread mariano . lopez
From: Mariano Lopez smart test requires to build the image using rpm packages, this check was included, but it checked for PACKAGE_CLASSES=='package_rpm', and this is not true when building packages for rpm and deb/ipk. So this would check IMAGE_PKGTYPE instead. [YOCTO #10964] Sig

[OE-core] [PATCH 0/3] Fix bugs found within runtime testing

2017-01-25 Thread mariano . lopez
From: Mariano Lopez This will fix some bugs found in testimage when executing tests from images downloaded from the autobuilders. The following changes since commit aa7e2717d33c2d754ec486e9148f446c1d6a3b14: ref-manual: remove core-image-directfb reference (2017-01-25 12:07:43 +) are

[OE-core] [PATCH 1/3] runtime/cases/connman.py: Stop using oeRuntimeTest

2017-01-25 Thread mariano . lopez
From: Mariano Lopez oeRuntimeTest class is not used anymore as part of runtime migration, this particular case was missed, so fix it. [YOCTO #10964] Signed-off-by: Mariano Lopez --- meta/lib/oeqa/runtime/cases/connman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[OE-core] [PATCH 3/3] testimage.bbclass: Allow to run tests on autobuilder's images

2017-01-25 Thread mariano . lopez
From: Mariano Lopez With the change to the new framework data store dependecy was removed, instead a new file is generated and used in testimage. When testing builds from the autobuilders the test data values are from the autobuilder, including the paths. Some tests require paths to current

[OE-core] [PATCH 1/1] package_ipk.bbclass: Add check for empty lines in DESCRIPTION

2017-01-24 Thread mariano . lopez
From: Mariano Lopez opkg uses empty lines as separator for next package and if an ipk file was packaged with empty lines in DESCRIPTION opkg won't be able to handle such ipk file, this happens at execution time. This commit will add a check for empty lines in DESCRIPTION when generating t

[OE-core] [PATCH 1/1] testimage.bbclass: Add systemd test automatically

2017-01-23 Thread mariano . lopez
From: Mariano Lopez This adds systemd test automatically when an image is build with systemd DISTRO_FEATURE [YOCTO #10935] Signed-off-by: Mariano Lopez --- meta/classes/testimage.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/testimage.bbclass b

[OE-core] [PATCH 1/1] lib/oe/package_manager.py: Fix extract for ipk and deb

2017-01-13 Thread mariano . lopez
From: Mariano Lopez With the move to use lists instead of strings in subprocess calls, package extraction was broken for ipk and deb. This fixes this issue. Signed-off-by: Mariano Lopez --- meta/lib/oe/package_manager.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a

[OE-core] [PATCH 2/2] oeqa/utils/qemurunner.py: Be sure to stop qemu-system

2017-01-13 Thread mariano . lopez
From: Mariano Lopez When runqemu fails, qemu-system process would keep running and won't be killed, setpgrp() was used when runqemu was a shell script but it seems it doesn't work always with python. This would kill qemu-system explicity and to avoid leaving it behind. Signed-off-b

[OE-core] [PATCH 1/2] oeqa/utils/qemurunner.py: Add missing sys module

2017-01-13 Thread mariano . lopez
From: Mariano Lopez This adds the missing sys module used by the child process to exit. It seems the exception was cached in testimage and selftest. It seems nobody noticed this because the module is only used for sys.exit(). Signed-off-by: Mariano Lopez --- meta/lib/oeqa/utils/qemurunner.py

[OE-core] [PATCH 0/2] Be sure to kill qemu-system on testimage

2017-01-13 Thread mariano . lopez
From: Mariano Lopez With refactor of runqemu to use python instead of shel scripting, the qemu-system process keeps running if runqemu fails. This series will fix this and will terminate qemu-system explicity. The following changes since commit 81021bc0aa0f64e67535f6a9551e921a64fe4395: yocto

Re: [OE-core] [PATCH 8/8] oeqa.utils.metadata: add bitbake revision information

2017-01-04 Thread Mariano Lopez
On 28/12/16 07:02, Markus Lehtonen wrote: > [YOCTO #10590] > > Signed-off-by: Markus Lehtonen > --- > meta/lib/oeqa/utils/metadata.py | 32 +++- > 1 file changed, 19 insertions(+), 13 deletions(-) > > diff --git a/meta/lib/oeqa/utils/metadata.py b/meta/lib/oeqa/utils

Re: [OE-core] [PATCH 7/8] oeqa.utils.metadata: have layer name as an attribute in xml

2017-01-04 Thread Mariano Lopez
On 28/12/16 07:02, Markus Lehtonen wrote: > -def dict_to_XML(tag, dictionary): > +def dict_to_XML(tag, dictionary, **kwargs): > """ Return XML element converting dicts recursively. """ > > -elem = Element(tag) > +elem = Element(tag, **kwargs) > for key, val in dictionary.items

Re: [OE-core] [PATCH 3/8] oeqa.utils.metadata: drop 'unknown' git data elements

2017-01-04 Thread Mariano Lopez
On 28/12/16 07:02, Markus Lehtonen wrote: > It's better just to not have the xml elements than to have elements with > faux data. One could have git branch named 'unknown', for example. > > I don't think is a good idea to completely remove the layer from the metadata when such layer is not a rep

[OE-core] [PATCH 1/1] oeqa/utils/commands.py: Fix get_bb_vars() when called without arguments

2016-12-14 Thread mariano . lopez
From: Mariano Lopez Commit 9d55e9d489cd78be592fb9b4d6484f9060c62fdd broke calling get_bb_vars() when called without arguments. This fix this issue. Signed-off-by: Mariano Lopez --- meta/lib/oeqa/utils/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/lib

Re: [OE-core] [PATCH 1/3] cve-check: allow recipes to override the product name

2016-12-07 Thread Mariano Lopez
On 07/12/16 10:50, Ross Burton wrote: > Add a new variable CVE_PRODUCT for the product name to look up in the NVD > database. Default this to BPN, but allow recipes such as tiff (which is > libtiff > in NVD) to override it. > > Signed-off-by: Ross Burton > I like the idea to be able to overrid

Re: [OE-core] [PATCHv2 3/3] oe-selftest: Add option to submit test result to a git repository.

2016-12-01 Thread Mariano Lopez
On Thursday, December 01, 2016 10:52:40 AM Benjamin Esquivel wrote: > Hi Mariano > > On Thu, 2016-12-01 at 09:37 -0600, mariano.lo...@linux.intel.com wrote: > > From: Mariano Lopez > > > > This new option allows to commit the result to a git repository, > > alo

[OE-core] [PATCHv2 3/3] oe-selftest: Add option to submit test result to a git repository.

2016-12-01 Thread mariano . lopez
From: Mariano Lopez This new option allows to commit the result to a git repository, along with the results it will add a metadata file for information of the current selftest run, such as: hostname, machine, distro, distro version, host version, and layers. This implementation will have a

[OE-core] [PATCHv2 1/3] oeqa/utils/commands.py: Make a copy of variables in get_bb_vars

2016-12-01 Thread mariano . lopez
From: Mariano Lopez The function get_bb_vars will remove items for the list passed as the function argument, this will leave the caller with an empty list and the function never says it will consume the items. This hasn't been found before because only get_bb_var uses this function. Signe

[OE-core] [PATCHv2 2/3] oeqa/utils/metadata.py: Add metadata library

2016-12-01 Thread mariano . lopez
From: Mariano Lopez Adds functions to get metadata from the host running the tests. [YOCTO #9954] Signed-off-by: Mariano Lopez --- meta/lib/oeqa/utils/metadata.py | 83 + 1 file changed, 83 insertions(+) create mode 100644 meta/lib/oeqa/utils

[OE-core] [PATCHv2 0/3] Add communication mechanism for sending test results

2016-12-01 Thread mariano . lopez
From: Mariano Lopez These changes add a mechanism for sending test result to a remote repository for later consumption of the data from other clients. These patches were tested in our local autobuilders. Changes in v2: - Give more priority to local branches, because it would be difficult to

Re: [OE-core] [PATCH 1/2] oeqa/utils/metadata.py: Add metadata library

2016-11-30 Thread Mariano Lopez
On Tuesday, November 29, 2016 04:17:25 PM Benjamin Esquivel wrote: > On Tue, 2016-11-29 at 08:42 -0600, mariano.lo...@linux.intel.com wrote: > > From: Mariano Lopez > > > > Adds functions to get metadata from the host running the tests. > > > > [YOCTO #9954

Re: [OE-core] [PATCH 2/2] oe-selftest: Add option to submit test result to a git repository.

2016-11-29 Thread Mariano Lopez
On Tuesday, November 29, 2016 04:26:45 PM Benjamin Esquivel wrote: > On Tue, 2016-11-29 at 08:42 -0600, mariano.lo...@linux.intel.com wrote: > > From: Mariano Lopez > > > > This new option allows to commit the result to a git repository, > > along with the results it w

Re: [OE-core] [PATCH 1/2] oeqa/utils/metadata.py: Add metadata library

2016-11-29 Thread Mariano Lopez
On Tuesday, November 29, 2016 04:17:25 PM Benjamin Esquivel wrote: > On Tue, 2016-11-29 at 08:42 -0600, mariano.lo...@linux.intel.com wrote: > > From: Mariano Lopez > > > > Adds functions to get metadata from the host running the tests. > > > > [YOCTO #9954

[OE-core] [PATCH 2/2] oe-selftest: Add option to submit test result to a git repository.

2016-11-29 Thread mariano . lopez
From: Mariano Lopez This new option allows to commit the result to a git repository, along with the results it will add a metadata file for information of the current selftest run, such as: hostname, machine, distro, distro version, host version, and layers. This implementation will have a

[OE-core] [PATCH 1/2] oeqa/utils/metadata.py: Add metadata library

2016-11-29 Thread mariano . lopez
From: Mariano Lopez Adds functions to get metadata from the host running the tests. [YOCTO #9954] Signed-off-by: Mariano Lopez --- meta/lib/oeqa/utils/metadata.py | 77 + 1 file changed, 77 insertions(+) create mode 100644 meta/lib/oeqa/utils

[OE-core] [PATCH 0/2] Add communication mechanism for sending test results

2016-11-29 Thread mariano . lopez
From: Mariano Lopez These changes add a mechanism for sending test result to a remote repository for later consumption of the data from other clients. These patches were tested in our local autobuilders. The following changes since commit 12a0ee049e453b6d0d2ce2f3fa981d1b6e02bd78: dev

[OE-core] [PATCHv2 1/1] nfs-utils: 1.3.3 -> 1.3.4

2016-11-23 Thread mariano . lopez
From: Mariano Lopez Signed-off-by: Mariano Lopez --- .../files/nfs-utils-debianize-start-statd.patch| 23 +++-- ...tatd-fix-a-segfault-caused-by-improper-us.patch | 113 - .../fix-protocol-minor-version-fall-back.patch | 55 -- .../{nfs-utils_1.3.3.bb

[OE-core] [PATCH 1/1] scripst/runqemu: Allow to use qemu from host.

2016-11-22 Thread mariano . lopez
From: Mariano Lopez This will add support to use qemu from the running host, with this is possible to put qemu-native in ASSUME_PROVIDED variable. By default it will try to get qemu from the build sysroot, and only if it fails will try to use the host's qemu. Signed-off-by: Mariano

[OE-core] [PATCH 1/1] nfs-utils: 1.3.3 -> 1.3.4

2016-11-22 Thread mariano . lopez
From: Mariano Lopez Signed-off-by: Mariano Lopez --- .../files/nfs-utils-debianize-start-statd.patch| 23 +++-- ...tatd-fix-a-segfault-caused-by-improper-us.patch | 113 - .../{nfs-utils_1.3.3.bb => nfs-utils_1.3.4.bb} | 5 +- 3 files changed, 14 inserti

Re: [OE-core] [PATCH 1/1] toolchain-shar-relocate.sh: Add error-handling

2016-09-26 Thread mariano . lopez
From: Mariano Lopez The relocation script of the SDK doesn't have enough error handling when replacing host perl with SDK perl or changing the symlinks. This will add those checks along with a sanity check of xargs. [YOCTO #10114] Signed-off-by: Mariano Lopez --- meta/files/toolchain

  1   2   3   4   >