diff options
| author | Lzu Tao <taolzu@gmail.com> | 2020-02-07 10:34:11 +0700 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2020-02-07 14:41:04 +0700 |
| commit | 9a12baad35e193bcb70a97139f47f090f51f253d (patch) | |
| tree | f113acc4ba8c612d26e180c809f8a9760d03b65a | |
| parent | c6a4beaf5626e47a286a229d78adf6df19016ac7 (diff) | |
| download | rust-9a12baad35e193bcb70a97139f47f090f51f253d.tar.gz rust-9a12baad35e193bcb70a97139f47f090f51f253d.zip | |
Update CARGO_TARGET_DIR
| -rwxr-xr-x | tests/ui/update-all-references.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ui/update-all-references.sh b/tests/ui/update-all-references.sh index 9f970ea26b7..30ba9188db4 100755 --- a/tests/ui/update-all-references.sh +++ b/tests/ui/update-all-references.sh @@ -12,7 +12,10 @@ if [[ "$1" == "--help" || "$1" == "-h" ]]; then echo "usage: $0" fi -BUILD_DIR=$PWD/target/debug/test_build_base +CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-$PWD/target} +PROFILE=${PROFILE:-debug} +BUILD_DIR=${CARGO_TARGET_DIR}/${PROFILE}/test_build_base + MY_DIR=$(dirname "$0") cd "$MY_DIR" || exit find . -name '*.rs' -exec ./update-references.sh "$BUILD_DIR" {} + |
