diff options
author | Paul Barker <pbarker@toganlabs.com> | 2017-10-12 16:49:55 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-10-12 21:59:51 -0400 |
commit | 638ba96208d28e7f7dc3c23efea2e017ea0b7a28 (patch) | |
tree | d2bddc42e987ca2d74a7952bf4c72119aa247fd9 | |
parent | 1e4530c283015d0874765b7dd69c55b843b9bee2 (diff) | |
download | meta-virtualization-638ba96208d28e7f7dc3c23efea2e017ea0b7a28.tar.gz |
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>
-rw-r--r-- | classes/sanity-meta-virt.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/sanity-meta-virt.bbclass b/classes/sanity-meta-virt.bbclass index 417ab6ff..b4ed0825 100644 --- a/classes/sanity-meta-virt.bbclass +++ b/classes/sanity-meta-virt.bbclass | |||
@@ -1,5 +1,5 @@ | |||
1 | addhandler virt_bbappend_distrocheck | 1 | addhandler virt_bbappend_distrocheck |
2 | virt_bbappend_distrocheck[eventmask] = "bb.event.ConfigParsed" | 2 | virt_bbappend_distrocheck[eventmask] = "bb.event.SanityCheck" |
3 | python virt_bbappend_distrocheck() { | 3 | python virt_bbappend_distrocheck() { |
4 | skip_check = e.data.getVar('SKIP_META_VIRT_SANITY_CHECK') == "1" | 4 | skip_check = e.data.getVar('SKIP_META_VIRT_SANITY_CHECK') == "1" |
5 | if 'virtualization' not in e.data.getVar('DISTRO_FEATURES').split() and not skip_check: | 5 | if 'virtualization' not in e.data.getVar('DISTRO_FEATURES').split() and not skip_check: |