summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2017-04-05 15:34:26 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-10 23:00:43 +0100
commitf91aedf6b5f2a76539760b1535ba427658bf77d7 (patch)
tree5581c932f92036060f0838315e3330e687db72e0 /meta/lib/oeqa
parente9cf698d0928f986cc67e72246e3547d68785b0e (diff)
downloadpoky-f91aedf6b5f2a76539760b1535ba427658bf77d7.tar.gz
selftest/wic: skip wic unit tests in case NLS is disable
WIC test case requires wic-tools which in turn depends on intltool-native and gettext-native. However, if NLS is disable, the gettext-minimal-native is used instead of gettext-native causing a failure on intltool-native as seen below: checking for msgfmt... no checking for gmsgfmt... no configure: error: GNU gettext tools not found; required for intltool ERROR: Function failed: do_configure (log file is located at /home/lsandov1/poky/build/tmp/work/i586-poky-linux-musl/systemd-boot/232-r0/temp/log.do_configure.7518) ERROR: Task (/home/lsandov1/poky/meta/recipes-bsp/systemd-boot/systemd-boot_232.bb:do_configure) failed with exit code '1' NOTE: Tasks Summary: Attempted 609 tasks of which 604 didn't need to be rerun and 1 failed. [YOCTO #10902] (From OE-Core rev: ccd2faca99331e010badbb78d42b0ee644ca1a0a) Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r--meta/lib/oeqa/selftest/wic.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index df5e060fb0..8030c35117 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -77,7 +77,10 @@ class Wic(oeSelfTest):
77 # clean up which can result in the native tools built earlier in 77 # clean up which can result in the native tools built earlier in
78 # setUpClass being unavailable. 78 # setUpClass being unavailable.
79 if not Wic.image_is_ready: 79 if not Wic.image_is_ready:
80 bitbake('wic-tools') 80 if get_bb_var('USE_NLS') == 'yes':
81 bitbake('wic-tools')
82 else:
83 self.skipTest('wic-tools cannot be built due its (intltool|gettext)-native dependency and NLS disable')
81 84
82 bitbake('core-image-minimal') 85 bitbake('core-image-minimal')
83 Wic.image_is_ready = True 86 Wic.image_is_ready = True