mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 13:06:59 +02:00
run-kola-tests.yaml: fix test-summary TAP formatting
Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
This commit is contained in:
parent
ae760903a3
commit
ab2000e3e4
20
.github/workflows/run-kola-tests.yaml
vendored
20
.github/workflows/run-kola-tests.yaml
vendored
@ -254,8 +254,26 @@ jobs:
|
||||
scripts/__TESTS__/*/_kola_temp/
|
||||
scripts/results-*.tap
|
||||
|
||||
- name: Patch TAP reports so test-summary can parse
|
||||
if: always()
|
||||
shell: bash
|
||||
run: |
|
||||
exec 2>&1
|
||||
set -x
|
||||
set -euo pipefail
|
||||
|
||||
cd scripts
|
||||
for tap in results-*.tap; do
|
||||
sumtap="test-summary-${tap}"
|
||||
# If this is missing then test-summary assumes the TAP report
|
||||
# is, in fact, XML.
|
||||
# See https://github.com/flatcar/scripts/pull/696#discussion_r1151027499
|
||||
echo "TAP version 13" > "${sumtap}"
|
||||
cat "${tap}" >> "${sumtap}"
|
||||
done
|
||||
|
||||
- name: Create Test Summary
|
||||
if: always()
|
||||
uses: test-summary/action@v2
|
||||
with:
|
||||
paths: "scripts/results-*.tap"
|
||||
paths: "scripts/test-summary-results-*.tap"
|
||||
|
Loading…
Reference in New Issue
Block a user