aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-08-21 18:23:09 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-23 14:12:39 +0100
commit320ea01f9eb33df462534bf08488ff6ada9bbe7b (patch)
tree3e2202288598d7387be571a993fc3567e86679fc
parent836393b467c3c0d53e4ace7611f991b0a5649182 (diff)
downloadopenembedded-core-contrib-320ea01f9eb33df462534bf08488ff6ada9bbe7b.tar.gz
openembedded-core-contrib-320ea01f9eb33df462534bf08488ff6ada9bbe7b.tar.bz2
openembedded-core-contrib-320ea01f9eb33df462534bf08488ff6ada9bbe7b.zip
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] Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/utils/logparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/logparser.py b/meta/lib/oeqa/utils/logparser.py
index 4355ce0b767..0670627c3c0 100644
--- a/meta/lib/oeqa/utils/logparser.py
+++ b/meta/lib/oeqa/utils/logparser.py
@@ -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