bats coverage fix
This commit is contained in:
@@ -7,8 +7,8 @@ OUTPUT="$REPORT_DIR/test-report.html"
|
||||
|
||||
[ -f "$INPUT" ] || { echo "ERROR: $INPUT not found" >&2; exit 1; }
|
||||
|
||||
TOTAL=$(grep -cE '^(ok|not ok) ' "$INPUT" 2>/dev/null || echo 0)
|
||||
PASS=$(grep -c '^ok ' "$INPUT" 2>/dev/null || echo 0)
|
||||
TOTAL=$(grep -cE '^(ok|not ok) ' "$INPUT" 2>/dev/null) || TOTAL=0
|
||||
PASS=$(grep -c '^ok ' "$INPUT" 2>/dev/null) || PASS=0
|
||||
FAIL=$((TOTAL - PASS))
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user