mirror of
https://github.com/uutils/findutils.git
synced 2026-06-10 15:48:30 -07:00
ci: Fix BFS tests comparison with zero skipped tests
Now that -path/-ipath is implemented, no tests are skipped any more. Fix CI by using zero instead of the empty string, which breaks the compare_bfs_result.py script.
This commit is contained in:
@@ -26,6 +26,12 @@ LOG_FILE=bfs/tests.log
|
||||
PASS=$(sed -n "s/^tests passed: \(.*\)/\1/p" "$LOG_FILE" | head -n1)
|
||||
SKIP=$(sed -n "s/^tests skipped: \(.*\)/\1/p" "$LOG_FILE" | head -n1)
|
||||
FAIL=$(sed -n "s/^tests failed: \(.*\)/\1/p" "$LOG_FILE" | head -n1)
|
||||
|
||||
# Default any missing numbers to zero (e.g. no tests skipped)
|
||||
: ${PASS:=0}
|
||||
: ${SKIP:=0}
|
||||
: ${FAIL:=0}
|
||||
|
||||
TOTAL=$((PASS + SKIP + FAIL))
|
||||
if (( TOTAL <= 1 )); then
|
||||
echo "Error in the execution, failing early"
|
||||
|
||||
Reference in New Issue
Block a user