[v3,6/6] testsuite: Fix task name index in order file

Message ID 20240503150504.479387-7-amikan@ilbers.de
State Accepted, archived
Headers show
Series Update to Bitbake 2.8 | expand

Commit Message

Anton Mikanovich May 3, 2024, 3:05 p.m. UTC
As task order log file changed format from:

do_fetch (1283260): log.do_fetch.1283260

to:

20240503-080747.276652 do_fetch (1283260): log.do_fetch.1283260

the index of task function name was changed.
Set correct index to fix sstate test case in CI.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 testsuite/cibase.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/testsuite/cibase.py b/testsuite/cibase.py
index 349a79f0..0f6997af 100755
--- a/testsuite/cibase.py
+++ b/testsuite/cibase.py
@@ -149,7 +149,7 @@  class CIBaseTest(CIBuilder):
             taskorder_file = glob.glob(f'{self.build_dir}/tmp/work/*/{target}/*/temp/log.task_order')
             try:
                 with open(taskorder_file[0], 'r') as f:
-                    tasks = [l.split()[0] for l in f.readlines()]
+                    tasks = [l.split()[1] for l in f.readlines()]
             except (FileNotFoundError, IndexError):
                 tasks = []
             if expected is None: