summaryrefslogtreecommitdiff
path: root/meta/lib
diff options
context:
space:
mode:
authorLucian Musat <george.l.musat@intel.com>2015-01-07 18:29:00 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-07 23:48:55 +0000
commitaffa3a126ba214f4d9b9a770e51323a6a5863bf2 (patch)
treeb67da63729a19a2360feb889d9fef559a474c4af /meta/lib
parent3f2aee4547649cf99e8ce9051721e15e8755cb06 (diff)
downloadopenembedded-core-affa3a126ba214f4d9b9a770e51323a6a5863bf2.tar.gz
openembedded-core-affa3a126ba214f4d9b9a770e51323a6a5863bf2.tar.bz2
openembedded-core-affa3a126ba214f4d9b9a770e51323a6a5863bf2.zip
oeqa/parselogs: Added a check in case the folder location does not contain any log files
Signed-off-by: Lucian Musat <george.l.musat@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/runtime/parselogs.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/lib/oeqa/runtime/parselogs.py b/meta/lib/oeqa/runtime/parselogs.py
index 7eb333ab70..2953742f23 100644
--- a/meta/lib/oeqa/runtime/parselogs.py
+++ b/meta/lib/oeqa/runtime/parselogs.py
@@ -123,9 +123,10 @@ class ParseLogsTest(oeRuntimeTest):
(status, output) = self.target.run("test -d "+str(location))
if (status == 0):
(status, output) = self.target.run("find "+str(location)+"/*.log -maxdepth 1 -type f")
- output = output.splitlines()
- for logfile in output:
- logs.append(os.path.join(location,str(logfile)))
+ if (status == 0):
+ output = output.splitlines()
+ for logfile in output:
+ logs.append(os.path.join(location,str(logfile)))
return logs
#build the grep command to be used with filters and exclusions