[PATCH yocto-autobuilder-helper 3/4] summarize_top_output.py: summarize data logged on failure


sakib.sajal@...
 

Signed-off-by: Sakib Sajal <sakib.sajal@...>
---
scripts/summarize_top_output.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/scripts/summarize_top_output.py b/scripts/summarize_top_output.py
index 50c9b0a..4e96ce9 100755
--- a/scripts/summarize_top_output.py
+++ b/scripts/summarize_top_output.py
@@ -168,9 +168,11 @@ def main():
target = sys.argv[2]
host_data_dir = "intermittent_failure_host_data"
directory = os.path.join(dest, target, host_data_dir)
- for f in glob.glob(directory + "/*_top.txt"):
- outputs = list_top_outputs(f)
- short_summary, summary, kernel_summary, zombie_summary, other_build = summarize_top(outputs, target)
- write_summary(short_summary, summary, kernel_summary, zombie_summary, other_build, target, f)
+ regs = (directory + "/*_top.txt", directory + "/*_failure_*.txt")
+ for exts in regs:
+ for f in glob.glob(exts):
+ outputs = list_top_outputs(f)
+ short_summary, summary, kernel_summary, zombie_summary, other_build = summarize_top(outputs, target)
+ write_summary(short_summary, summary, kernel_summary, zombie_summary, other_build, target, f)

main()
--
2.25.1

Join yocto@lists.yoctoproject.org to automatically receive all group messages.