]> code.ossystems Code Review - openembedded-core.git/commit
sanity: check_perl_modules bug fix
authorZheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Wed, 10 Apr 2019 15:44:10 +0000 (23:44 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Apr 2019 20:19:27 +0000 (21:19 +0100)
commit2c6fff3fe315357d65d082679856615afc367d90
treef32420951b73b57ab95c54a4448df34e5211181f
parent30c001cdbc6207001b18e093ad9691e606428f0f
sanity: check_perl_modules bug fix

Fix Python3 TypeError error in check_perl_modules:

Executing bitbake, the following error message will be throwed:

  File ".../poky/meta/classes/sanity.bbclass", line
979, in check_sanity_eventhandler
    check_sanity(sanity_data)
  File ".../poky/meta/classes/sanity.bbclass", line
943, in check_sanity
    check_sanity_version_change(status, sanity_data)
  File ".../poky/meta/classes/sanity.bbclass", line
637, in check_sanity_version_change
    status.addresult(check_perl_modules(d))
  File ".../poky/meta/classes/sanity.bbclass", line
563, in check_perl_modules
    errresult += e.output
TypeError: must be str, not bytes

So here, transfer e.output from bytes to str.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sanity.bbclass