Skip to content

Commit

Permalink
Restore OUT_DIR specifying for mdBook tests (cucumber-rs#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Nov 2, 2022
1 parent 9735af0 commit c185dce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ ifeq ($(clean),yes)
endif
$(eval target := $(strip $(shell cargo -vV | sed -n 's/host: //p')))
cargo build --all-features --tests
mdbook test book -L target/debug/deps $(strip \
OUT_DIR=target mdbook test book -L target/debug/deps $(strip \
$(if $(call eq,$(findstring windows,$(target)),),,\
$(shell cargo metadata -q \
| jq -r '.packages[] | select(.name == "windows_$(word 1,$(subst -, ,$(target)))_$(word 4,$(subst -, ,$(target)))") | .manifest_path' \
Expand Down
2 changes: 1 addition & 1 deletion book/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ To run the tests validating all code examples in the book, run (from project roo

```bash
cargo build --all-features --tests
mdbook test -L target/debug/deps
OUT_DIR=target mdbook test -L target/debug/deps

# or via shortcut:
make test.book
Expand Down

0 comments on commit c185dce

Please sign in to comment.