mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
sanity-meta-virt: Watch for SanityCheck event
The ConfigParsed event is raised multiple times during a build which resulted in the sanity warning appearing up to 4 times per build. Instead we should be watching for the SanityCheck event (this is what the sanity checks in oe-core watch for). Signed-off-by: Paul Barker <pbarker@toganlabs.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
parent
1e4530c283
commit
638ba96208
|
@ -1,5 +1,5 @@
|
||||||
addhandler virt_bbappend_distrocheck
|
addhandler virt_bbappend_distrocheck
|
||||||
virt_bbappend_distrocheck[eventmask] = "bb.event.ConfigParsed"
|
virt_bbappend_distrocheck[eventmask] = "bb.event.SanityCheck"
|
||||||
python virt_bbappend_distrocheck() {
|
python virt_bbappend_distrocheck() {
|
||||||
skip_check = e.data.getVar('SKIP_META_VIRT_SANITY_CHECK') == "1"
|
skip_check = e.data.getVar('SKIP_META_VIRT_SANITY_CHECK') == "1"
|
||||||
if 'virtualization' not in e.data.getVar('DISTRO_FEATURES').split() and not skip_check:
|
if 'virtualization' not in e.data.getVar('DISTRO_FEATURES').split() and not skip_check:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user