mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 01:01:27 +00:00
.github/workflows: Improve regression test failure detection in GitHub Actions
Update the run_regression_tests workflow to fail if "Compiling the patched
kernel" is missing or if any non-zero error count ("N errors") or "FAILED"
is detected after the marker.
The previous check missed multi-digit error counts and did not handle
a missing marker, which could result in undetected failures.
This commit is contained in:
10
.github/workflows/run_regression_tests.yaml
vendored
10
.github/workflows/run_regression_tests.yaml
vendored
@@ -74,7 +74,15 @@ jobs:
|
||||
|
||||
./scripts/run-regression-tests -l -q -k -d /tmp/scst-${{matrix.version}} ${{matrix.version}}-nc-ns-nm | tee output.txt
|
||||
|
||||
cat output.txt | grep -A1 "Compiling the patched kernel" | grep -e "FAILED" -e "[^0] errors" > /dev/null 2>&1 && err=1
|
||||
if ! grep -q "Compiling the patched kernel" output.txt; then
|
||||
echo "::error ::run-regression-tests failed"
|
||||
err=1
|
||||
else
|
||||
if grep -A1 "Compiling the patched kernel" output.txt | grep -E -q "FAILED|[1-9][0-9]* errors"; then
|
||||
echo "::error ::Regression test failed"
|
||||
err=1
|
||||
fi
|
||||
fi
|
||||
|
||||
rm -f output.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user