Adapt script to LAVA's updated job results format
The script has been updated to align with changes introduced
in LAVA:
https://gitlab.com/lava/lava/-/commit/a1d4dae99c2705966925788242684cde3c4f8aea
Specifically, the `lava-test-monitor` phase no longer includes
results data, requiring modifications to how test results are
parsed.
Signed-off-by: Leandro Belli <leandro.belli@arm.com>
Change-Id: I8bad6123c7824a7a6ec8b343d8e5a04fa0552975
diff --git a/script/parse_lava_job.py b/script/parse_lava_job.py
index 7cdddfe..49d9a59 100755
--- a/script/parse_lava_job.py
+++ b/script/parse_lava_job.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
+# Copyright (c) 2019-2024 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -113,15 +113,6 @@
else:
raise Exception("Payload not defined")
- # First make sure the test session finished.
- for phase in filter(lambda p: p["name"] == "lava-test-monitor", results):
- if phase["result"] != "pass":
- print(session + " test session failed. Did it time out?")
- report_job_failure()
- break
- else:
- raise Exception("Couldn't find 'lava-test-monitor' phase results")
-
# Then count the number of tests that failed/skipped.
test_failures = 0
test_skips = 0