Skip to content

Commit

Permalink
base-tests: use subshells to manage current directory
Browse files Browse the repository at this point in the history
It saves on having to pair `cd <path> && think && cd ..`.
  • Loading branch information
jsgf committed Jan 27, 2019
1 parent 86f544c commit 1303e6a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ci/base-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ cargo build --features debugging
cargo test --features debugging
# for faster build, share target dir between subcrates
export CARGO_TARGET_DIR=`pwd`/target/
cd clippy_lints && cargo test && cd ..
cd rustc_tools_util && cargo test && cd ..
cd clippy_dev && cargo test && cd ..
(cd clippy_lints && cargo test)
(cd rustc_tools_util && cargo test)
(cd clippy_dev && cargo test)

# make sure clippy can be called via ./path/to/cargo-clippy
cd clippy_workspace_tests
../target/debug/cargo-clippy
cd ..
(
cd clippy_workspace_tests
../target/debug/cargo-clippy
)

# Perform various checks for lint registration
./util/dev update_lints --check
Expand Down

0 comments on commit 1303e6a

Please sign in to comment.