diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-02-10 17:19:53 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-11 12:34:29 +0000 |
commit | 738a9b7cc322f3dca94681bffab80c6eff892cfb (patch) | |
tree | c6eb4c5557bd70ce23bd5e01014dd77e78e2018f /meta/classes/sanity.bbclass | |
parent | e64ce73b7e05bfb317cb673306f5dd1b9b7b716d (diff) | |
download | poky-738a9b7cc322f3dca94681bffab80c6eff892cfb.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.
(From OE-Core rev: 9e0ee11a59c545dba45947b7675f5bcef489a7c8)
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.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 9f35558af8..466eb49121 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -452,12 +452,14 @@ def check_git_version(sanity_data): | |||
452 | def check_perl_modules(sanity_data): | 452 | def check_perl_modules(sanity_data): |
453 | ret = "" | 453 | ret = "" |
454 | modules = ( "Text::ParseWords", "Thread::Queue", "Data::Dumper" ) | 454 | modules = ( "Text::ParseWords", "Thread::Queue", "Data::Dumper" ) |
455 | errresult = '' | ||
455 | for m in modules: | 456 | for m in modules: |
456 | status, result = oe.utils.getstatusoutput("perl -e 'use %s' 2> /dev/null" % m) | 457 | status, result = oe.utils.getstatusoutput("perl -e 'use %s'" % m) |
457 | if status != 0: | 458 | if status != 0: |
459 | errresult += result | ||
458 | ret += "%s " % m | 460 | ret += "%s " % m |
459 | if ret: | 461 | if ret: |
460 | return "Required perl module(s) not found: %s\n" % ret | 462 | return "Required perl module(s) not found: %s\n\n%s\n" % (ret, errresult) |
461 | return None | 463 | return None |
462 | 464 | ||
463 | def sanity_check_conffiles(status, d): | 465 | def sanity_check_conffiles(status, d): |