aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-02-10 17:19:53 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-11 12:34:26 +0000
commit9e0ee11a59c545dba45947b7675f5bcef489a7c8 (patch)
tree2cffb1a693e452ae1fcbfc423f0ff64c61af7c5a /meta/classes/sanity.bbclass
parentd991fe7f17861dc5c21f7eac30d8c912b4d5dbed (diff)
downloadopenembedded-core-contrib-9e0ee11a59c545dba45947b7675f5bcef489a7c8.tar.gz
classes/sanity: check_perl_modules provide output when fail
When check_perl_modules fail is a good idea to print perl interpeter output for debug purposes. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 9f35558af82..466eb491213 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -452,12 +452,14 @@ def check_git_version(sanity_data):
def check_perl_modules(sanity_data):
ret = ""
modules = ( "Text::ParseWords", "Thread::Queue", "Data::Dumper" )
+ errresult = ''
for m in modules:
- status, result = oe.utils.getstatusoutput("perl -e 'use %s' 2> /dev/null" % m)
+ status, result = oe.utils.getstatusoutput("perl -e 'use %s'" % m)
if status != 0:
+ errresult += result
ret += "%s " % m
if ret:
- return "Required perl module(s) not found: %s\n" % ret
+ return "Required perl module(s) not found: %s\n\n%s\n" % (ret, errresult)
return None
def sanity_check_conffiles(status, d):