Skip to content

Commit 4e42af2

Browse files
committed
update execution spec test execute
1 parent 1798484 commit 4e42af2

2 files changed

Lines changed: 3 additions & 24 deletions

File tree

playbooks/dev/execution-spec-tests-execute.yaml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -175,33 +175,12 @@ tasks:
175175
176176
cp report.json ${ASSERTOOR_RESULT_DIR}/report.json
177177
cp report.html ${ASSERTOOR_RESULT_DIR}/report.html
178+
mkdir -p ${ASSERTOOR_RESULT_DIR}/assets
179+
wget -O ${ASSERTOOR_RESULT_DIR}/assets/style.css https://raw.githubusercontent.com/ethpandaops/assertoor/refs/heads/master/res/execution-spec-tests-styles.css
178180
179181
REPORT_JSON=$(cat report.json | jq -c '[.tests[] | {"nodeid": .nodeid, "outcome": .outcome, "setupDuration": .setup.duration, "callDuration": .call.duration, "teardownDuration": .teardown.duration}]')
180182
181183
echo "::set-output-json reportJSON ${REPORT_JSON}"
182184
183185
exit 0
184-
- name: run_task_matrix
185-
title: "Show test results"
186-
configVars:
187-
matrixValues: "tasks.execute.outputs.reportJSON"
188-
config:
189-
runConcurrent: true
190-
matrixVar: "testResult"
191-
task:
192-
name: run_shell
193-
title: "${{testResult.nodeid}}"
194-
config:
195-
shell: bash
196-
envVars:
197-
TEST_RESULT: testResult
198-
command: |
199-
DURATION_SECONDS=$(echo $TEST_RESULT | jq -r '(.setup.duration // 0) + (.call.duration // 0) + (.teardown.duration // 0)')
200-
echo "::set-output-json customRunTimeSeconds ${DURATION_SECONDS}"
201-
echo "::set-output-json execTestResult ${TEST_RESULT}"
202-
if $(echo $TEST_RESULT | jq -e '.outcome == "passed"') ; then
203-
echo "Test passed"
204-
else
205-
echo "Test failed"
206-
exit 1
207-
fi
186+

res/execution-spec-tests-styles.css

Whitespace-only changes.

0 commit comments

Comments
 (0)