* [PATCH] ci: pytest: print labgrid console output inline
@ 2025-08-06 12:46 Ahmad Fatoum
2025-08-07 6:02 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-08-06 12:46 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
Makes it easier to debug issues instead of having to download the
console_main files:
- Print the console_main files inline on error
- Collect all console_main files at the end
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
.github/workflows/test-labgrid-pytest.yml | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/test-labgrid-pytest.yml b/.github/workflows/test-labgrid-pytest.yml
index 38bd7126bd86..adec3defc1d7 100644
--- a/.github/workflows/test-labgrid-pytest.yml
+++ b/.github/workflows/test-labgrid-pytest.yml
@@ -96,6 +96,7 @@ jobs:
done
- name: labgrid-pytest
+ if: steps.build.outcome == 'success'
run: |
export KBUILD_OUTPUT=build-${{matrix.arch}}-${{matrix.defconfig}}
@@ -113,17 +114,19 @@ jobs:
--junitxml=$cfg.tests.xml --lg-log=log/$cfg $extraargs
done
+ - name: Print Labgrid Console Output
+ if: always()
+ run: |
+ for i in ${{matrix.lgenv}}; do
+ grep -wq '\(QEMUDriver\|ExternalConsoleDriver\):' "$i" || continue
+
+ cfg=$(basename $i .yaml)
+ cat log/$cfg/* || true
+ done
+
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: steps.build.outcome == 'success'
with:
check_name: "Test Results (${{matrix.defconfig}})"
files: ./*.tests.xml
-
- - name: Publish Labgrid Log Results
- uses: actions/upload-artifact@v4
- if: steps.build.outcome == 'success'
- with:
- name: console-log-${{matrix.defconfig}}
- path: log/
- if-no-files-found: error
--
2.39.5
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-07 6:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-06 12:46 [PATCH] ci: pytest: print labgrid console output inline Ahmad Fatoum
2025-08-07 6:02 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox