mirror of
https://github.com/uutils/findutils.git
synced 2026-06-10 15:48:30 -07:00
20 lines
520 B
Bash
Executable File
20 lines
520 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
export LC_COLLATE=C
|
|
|
|
# Extract the failing test lines from log files
|
|
failing_tests() {
|
|
sed -En 's/FAIL: ([^,:]*)[,:].*/\1/p' "$@" | sort
|
|
}
|
|
|
|
comm -3 <(failing_tests $1/*.log) <(failing_tests $2/*.log) | tr '\t' ',' | while IFS=, read old new foo; do
|
|
if [ -n "$old" ]; then
|
|
echo "::warning ::Congrats! The GNU test $old is now passing!"
|
|
fi
|
|
if [ -n "$new" ]; then
|
|
echo "::error ::GNU test failed: $new. $new is passing on 'main'. Maybe you have to rebase?"
|
|
fi
|
|
done
|