mirror of
https://github.com/uutils/findutils.git
synced 2026-06-10 15:48:30 -07:00
ci: Fix GNU testsuite comparison
The uploaded log artifact maintains the directory structure, so just compare it directly to the GNU find directory.
This commit is contained in:
+2
-2
@@ -6,10 +6,10 @@ export LC_COLLATE=C
|
||||
|
||||
# Extract the failing test lines from log files
|
||||
failing_tests() {
|
||||
sed -En 's/FAIL: ([^,:]*)[,:].*/\1/p' "$@" | sort
|
||||
sed -En 's/FAIL: ([^,:]*)[,:].*/\1/p' "$1"/{tests,{find,xargs}/testsuite}/*.log | sort
|
||||
}
|
||||
|
||||
comm -3 <(failing_tests $1/*.log) <(failing_tests $2/*.log) | tr '\t' ',' | while IFS=, read old new foo; do
|
||||
comm -3 <(failing_tests "$1") <(failing_tests "$2") | tr '\t' ',' | while IFS=, read old new foo; do
|
||||
if [ -n "$old" ]; then
|
||||
echo "::warning ::Congrats! The GNU test $old is now passing!"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user