[PATCH] CI: list failed tests at the end of tools job

Marek Marczykowski-Górecki posted 1 patch 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20250730114624.2260010-1-marmarek@invisiblethingslab.com
automation/scripts/run-tools-tests | 1 +
1 file changed, 1 insertion(+)
[PATCH] CI: list failed tests at the end of tools job
Posted by Marek Marczykowski-Górecki 3 months ago
Currently, if any unit test fails, the final line says only result of
the last test - one need to scroll through the whole log to find which
test failed (or whether was it some infra issue).
Do the simple thing for now and repeate the failed tests list and the
end.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
---
 automation/scripts/run-tools-tests | 1 +
 1 file changed, 1 insertion(+)

diff --git a/automation/scripts/run-tools-tests b/automation/scripts/run-tools-tests
index 15766ca0f0ab..86f305c4c322 100755
--- a/automation/scripts/run-tools-tests
+++ b/automation/scripts/run-tools-tests
@@ -42,5 +42,6 @@ printf ' </testsuite>\n' >> "$xml_out"
 printf '</testsuites>\n' >> "$xml_out"
 
 if [ -n "$failed" ]; then
+    echo "FAILED tests: $failed"
     exit 1
 fi
-- 
2.49.0


Re: [PATCH] CI: list failed tests at the end of tools job
Posted by Andrew Cooper 3 months ago
On 30/07/2025 12:46 pm, Marek Marczykowski-Górecki wrote:
> Currently, if any unit test fails, the final line says only result of
> the last test - one need to scroll through the whole log to find which
> test failed (or whether was it some infra issue).
> Do the simple thing for now and repeate the failed tests list and the
> end.
>
> Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>

Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>