Skip to content

Commit

Permalink
Fix some silly fails in check_spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaj committed Feb 2, 2025
1 parent 3d99c57 commit 2ef7234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions check_spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set -euo pipefail
cd `dirname "$0"`

update="no"
case "$1" in
case "${1:-}" in
"-u"|"--update")
update="yes"
shift
Expand Down Expand Up @@ -43,7 +43,7 @@ list_fails() {
grep ^SassSpec:: | sed -e 's#.*test__##' -e 's# .*##' | sort
}

case "$1" in
case "${1:-}" in
"")
check
;;
Expand All @@ -56,7 +56,7 @@ case "$1" in
echo " scss parser values"
;;
"stats")
check | \
(check || true) | \
rg --text --no-line-number --no-unicode \
'^(\d+) runs, (\d+) passing, (\d+) failures, (\d+) todo, (\d+) ignored, (\d+) errors' \
--replace 'echo "$0"; echo "Progress: $[$2] of $[$1-$4-$5] tests passed"' - \
Expand Down

0 comments on commit 2ef7234

Please sign in to comment.