summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/parselogs.py
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-08 09:24:49 +0000
commit19399d5d291fd1796e174439e01e39b9197cb614 (patch)
tree2dafc0061a66b580469911c02180682a033b5d54 /meta/lib/oeqa/runtime/parselogs.py
parent9fee93dd0aa02833b7d8613f443b8b2c2e89484d (diff)
downloadpoky-19399d5d291fd1796e174439e01e39b9197cb614.tar.gz
oeqa/parselogs: Added a check in case the folder location does not contain any log files
(From OE-Core rev: affa3a126ba214f4d9b9a770e51323a6a5863bf2) Signed-off-by: Lucian Musat <george.l.musat@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/parselogs.py')
-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):
123 (status, output) = self.target.run("test -d "+str(location)) 123 (status, output) = self.target.run("test -d "+str(location))
124 if (status == 0): 124 if (status == 0):
125 (status, output) = self.target.run("find "+str(location)+"/*.log -maxdepth 1 -type f") 125 (status, output) = self.target.run("find "+str(location)+"/*.log -maxdepth 1 -type f")
126 output = output.splitlines() 126 if (status == 0):
127 for logfile in output: 127 output = output.splitlines()
128 logs.append(os.path.join(location,str(logfile))) 128 for logfile in output:
129 logs.append(os.path.join(location,str(logfile)))
129 return logs 130 return logs
130 131
131 #build the grep command to be used with filters and exclusions 132 #build the grep command to be used with filters and exclusions