Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahr committed Apr 10, 2024
1 parent d6600d5 commit bb62b97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions lib/tools.bash
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,6 @@ run_tool_shfmt() {
printf " ↳ %s%s%s\n" "${tool}" "${DOTS:offset}" "ok"
fi
else
echo ">>> $path"
cat "${path}"
echo "<<< $path"
echo ">>> original"
echo "${original}"
echo "<<< original"
status=0
printf " ↳ %s%s%s\n" "${tool}" "${DOTS:offset}" "wrote"
fi
Expand Down Expand Up @@ -482,8 +476,8 @@ run_tool_uncrustify() {
IFS= read -r stderr < <(mktemp)
status=0

cmd=$(interpolate \
"tool" "uncrustify" \
readarray -t cmd < <(interpolate \
"tool" "${LINTBALL_DIR}/tools/bin/uncrustify" \
"lintball_dir" "${LINTBALL_DIR}" \
"lang" "${lang}" \
"path" "${path}" \
Expand Down
2 changes: 1 addition & 1 deletion test/check.bats
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ teardown() {
run lintball fix # 3>&-
assert_success
assert [ "$(echo "${output}" | grep -cF " ↳ prettier...........................wrote" -c)" -eq 2 ]
assert [ "$(echo "${output}" | grep -cF " ↳ yamllint...........................wrote" -c)" -eq 1 ]
assert [ "$(echo "${output}" | grep -cF " ↳ yamllint...........................ok" -c)" -eq 1 ]
run lintball check # 3>&-
assert_success
assert [ "$(echo "${output}" | grep -cF " ↳ prettier...........................ok" -c)" -eq 2 ]
Expand Down

0 comments on commit bb62b97

Please sign in to comment.