Skip to content

Commit

Permalink
Rename run_*_regression.sh to *_regression_inner
Browse files Browse the repository at this point in the history
Personal preference, plus more explanatory.
  • Loading branch information
victor-gp committed Jul 23, 2022
1 parent 3845f9e commit aa47747
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# only used for tests/docker/bat-test.dockerfile

*
!/syntaxes/
!/tests/docker/*regression.sh
!/tests/docker/*regression_inner.sh
4 changes: 2 additions & 2 deletions tests/docker/bat-test.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ FROM debian:bullseye-slim
COPY --from=fetch-pkg /tmp/bat.deb /tmp
RUN dpkg --install /tmp/bat.deb
ENV COLORTERM=truecolor
COPY ./tests/docker/*regression.sh /tests/
COPY ./tests/docker/*regression_inner.sh /tests/
COPY ./syntaxes/cmd-help.sublime-syntax /root/.config/bat/syntaxes/
RUN bat cache --build > /dev/null
ENTRYPOINT /tests/run_highlight_regression.sh
ENTRYPOINT /tests/highlight_regression_inner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"

for source_path in source/* ; do
# this dir is only for run_theme_regression.sh
# this dir is only for theme_regression_inner.sh
[ "$source_path" = source/theme ] && continue

filename=$(basename "$source_path")
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/theme_regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ vol2="$PWD"/theme:/tests/theme

docker run --rm \
-v "$vol1" -v "$vol2" \
--entrypoint /tests/run_theme_regression.sh \
--entrypoint /tests/theme_regression_inner.sh \
bat-test

# effective difference between HEAD/staging and working dir
Expand Down

0 comments on commit aa47747

Please sign in to comment.