fix: try fix test runs
[skip ci]
This commit is contained in:
parent
a0351798e0
commit
dab47d4690
3 changed files with 9 additions and 6 deletions
7
.github/actions/acc_test/action.yaml
vendored
7
.github/actions/acc_test/action.yaml
vendored
|
|
@ -245,12 +245,13 @@ runs:
|
|||
go test -v ${testfile} -timeout=${{ inputs.test_timeout_string }} | tee -a acc_test_run.log
|
||||
set -e
|
||||
|
||||
if [[ $(cat acc_test_run.log | grep "FAIL") ]]; then
|
||||
have_fail=$(cat acc_test_run.log | grep FAIL)
|
||||
if [[ -n $have_fail ]]; then
|
||||
echo "::endgroup::"
|
||||
echo "::group::go test result"
|
||||
echo "Test failed, see acc_test_run.log for details"
|
||||
res=$(cat acc_test_run.log | grep -v "=== RUN" | grep -v "\-\-\- PASS" | grep -v "=== CONT" | grep -v "=== PAUSE")
|
||||
echo "result=FAIL: ${res}" >> "$GITHUB_OUTPUT"
|
||||
echo "${have_fail}"
|
||||
echo "result=<b>FAIL:</b> <br />${have_fail}" >> "$GITHUB_OUTPUT"
|
||||
echo "::endgroup::"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue