misc, test: Some quality of life improvements

Add a fold in github actions output around the ragel build.

Run the commit-message test locally, so that error can be detected
before pushing to CI. We also now accept two-letter topics.

Some minor improvement in the testing scripts.
This commit is contained in:
Felix Frank
2024-03-01 19:28:38 +01:00
committed by James Shubin
parent 29ec867ac7
commit edcb04d1a9
4 changed files with 23 additions and 11 deletions

View File

@@ -31,7 +31,8 @@ function run-testsuite() {
# if not running all tests or if this test is not explicitly selected, skip it
if test -z "$testsuite" || test "test-$testsuite" = "$testname"; then
fold_start "$testname"
"$@" || failures=$([ -n "$failures" ] && echo "$failures\\n$@" || echo "$@")
description="$testname ($@)"
"$@" || failures=$([ -n "$failures" ] && echo "$failures\\n$description" || echo "$description")
fold_end "$testname"
fi
}