mirror of
https://git.yoctoproject.org/poky
synced 2026-04-04 23:02:22 +02:00
utils/logparser.py: fix section check
The section might be None or '', so use "if section" for it.
Fixed:
File "/buildarea/lyang1/poky/meta/lib/oeqa/utils/logparser.py", line 113, in log_as_files
prefix += section
TypeError: Can't convert 'NoneType' object to str implicitly
[YOCTO #11547]
(From OE-Core rev: 320ea01f9eb33df462534bf08488ff6ada9bbe7b)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
20704967f6
commit
f4d4bfd2b7
@@ -109,7 +109,7 @@ class Result(object):
|
||||
prefix = ''
|
||||
for x in test_status:
|
||||
prefix +=x+'.'
|
||||
if (section != ''):
|
||||
if section:
|
||||
prefix += section
|
||||
section_file = os.path.join(target_dir, prefix)
|
||||
# purge the file contents if it exists
|
||||
|
||||
Reference in New Issue
Block a user