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

Submitted by Sakib Sajal on July 9, 2021, 8:56 p.m. | Patch ID: 179952

Details

Message ID 20210709205609.233487-3-sakib.sajal@windriver.com
State New
Headers show

Commit Message

Sakib Sajal July 9, 2021, 8:56 p.m.
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
---
 scripts/summarize_top_output.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

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()