mirror of
https://git.yoctoproject.org/poky
synced 2026-04-25 15:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
9fee93dd0a
commit
19399d5d29
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user