From 358c559fa940e071f6de269cdb0684b3019e40e0 Mon Sep 17 00:00:00 2001 From: Kneasle Date: Thu, 2 Sep 2021 22:57:28 +0100 Subject: [PATCH] Fix cargo's output directory to `target/` The UI tests only look in `target/` for the built binaries. However, Cargo allows users to override the target directory - usually to make a single unified target directory. In this case, the unit tests would fail unless the target directory was manually overridden (as is done in this commit). --- .cargo/config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.cargo/config b/.cargo/config index 84ae36a46d71..f2c89d7bb894 100644 --- a/.cargo/config +++ b/.cargo/config @@ -6,4 +6,5 @@ collect-metadata = "test --test dogfood --features metadata-collector-lint -- ru [build] # -Zbinary-dep-depinfo allows us to track which rlib files to use for compiling UI tests -rustflags = ["-Zunstable-options", "-Zbinary-dep-depinfo"] +rustflags = ["-Zunstable-options"] +target-dir = "target/" # Tests require that the build files are placed in /target