diff options
| author | Jeremy Fitzhardinge <jeremy@goop.org> | 2019-01-26 17:49:29 -0800 |
|---|---|---|
| committer | Jeremy Fitzhardinge <jeremy@goop.org> | 2019-02-02 11:43:21 -0800 |
| commit | b07f1b097493809045c92bb3ca09b5792310e5a5 (patch) | |
| tree | 031bdf8a2f236de7e4e235226db35ac482c841cc | |
| parent | 993e8ace8e82d28fc891d9cc84fa4b06754c3b58 (diff) | |
| download | rust-b07f1b097493809045c92bb3ca09b5792310e5a5.tar.gz rust-b07f1b097493809045c92bb3ca09b5792310e5a5.zip | |
base-tests: use subshells to manage current directory
It saves on having to pair `cd <path> && think && cd ..`.
| -rwxr-xr-x | ci/base-tests.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ci/base-tests.sh b/ci/base-tests.sh index 6675c795b3b..17eec3a4149 100755 --- a/ci/base-tests.sh +++ b/ci/base-tests.sh @@ -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 |
