8307837: [8u] Check step in GHA should also print errors

Reviewed-by: andrew
This commit is contained in:
Zdenek Zambersky 2023-10-02 10:25:04 +00:00
parent f4260a4dee
commit 27058b26e6

View File

@ -277,7 +277,7 @@ jobs:
run: >
if cat test-results/testoutput/*/exitcode.txt | grep -q -v '^0$'
|| ! cat test-results/testoutput/*/Stats.txt | grep -q 'fail=0' ; then
cat test-results/testoutput/*/JTreport/text/newfailures.txt ;
cat test-results/testoutput/*/JTreport/text/{newfailures,other_errors}.txt ;
exit 1 ;
fi
@ -638,7 +638,7 @@ jobs:
run: >
if cat test-results/testoutput/*/exitcode.txt | grep -q -v '^0$'
|| ! cat test-results/testoutput/*/Stats.txt | grep -q 'fail=0' ; then
cat test-results/testoutput/*/JTreport/text/newfailures.txt ;
cat test-results/testoutput/*/JTreport/text/{newfailures,other_errors}.txt ;
exit 1 ;
fi
@ -1143,6 +1143,7 @@ jobs:
run: >
if ((Get-ChildItem -Path test-results\testoutput\*\exitcode.txt -Recurse | Select-String -Pattern '^0$' -NotMatch ).Count -gt 0) {
Get-Content -Path test-results\testoutput\*\JTreport\text\newfailures.txt ;
Get-Content -Path test-results\testoutput\*\JTreport\text\other_errors.txt ;
exit 1
}
@ -1299,6 +1300,7 @@ jobs:
run: >
if ((Get-ChildItem -Path test-results\testoutput\*\exitcode.txt -Recurse | Select-String -Pattern '^0$' -NotMatch ).Count -gt 0) {
Get-Content -Path test-results\testoutput\*\JTreport\text\newfailures.txt ;
Get-Content -Path test-results\testoutput\*\JTreport\text\other_errors.txt ;
exit 1
}
@ -1529,7 +1531,7 @@ jobs:
run: >
if cat test-results/testoutput/*/exitcode.txt | grep -q -v '^0$'
|| ! cat test-results/testoutput/*/Stats.txt | grep -q 'fail=0' ; then
cat test-results/testoutput/*/JTreport/text/newfailures.txt ;
cat test-results/testoutput/*/JTreport/text/{newfailures,other_errors}.txt ;
exit 1 ;
fi