about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2024-09-20 15:47:36 -0700
committerJosh Stone <jistone@redhat.com>2024-09-20 15:47:36 -0700
commit4e53640b17fd65765abe0adca34c7d5eedf241c6 (patch)
tree2a267fbd4c85c0d9c29d12c1f92a62211a4870b4 /tests
parent5ba6db1b648d93fbbab4ae0466e40db682fa45fc (diff)
downloadrust-4e53640b17fd65765abe0adca34c7d5eedf241c6.tar.gz
rust-4e53640b17fd65765abe0adca34c7d5eedf241c6.zip
Pass the current cargo to `run-make` tests
A couple tests were using `BOOTSTRAP_CARGO` with `-Zbuild-std`, but that
stage0 cargo might not always be in sync with in-tree changes. In
particular, those tests started failing on the beta branch because the
older cargo couldn't find the library `Cargo.lock`, and then couldn't
build the latest version of `compiler_builtins` that had nightly changes.
Diffstat (limited to 'tests')
-rw-r--r--tests/run-make/compiler-builtins/rmake.rs4
-rw-r--r--tests/run-make/thumb-none-cortex-m/rmake.rs6
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/run-make/compiler-builtins/rmake.rs b/tests/run-make/compiler-builtins/rmake.rs
index 42ed07d9daf..3b05fe2055c 100644
--- a/tests/run-make/compiler-builtins/rmake.rs
+++ b/tests/run-make/compiler-builtins/rmake.rs
@@ -33,8 +33,8 @@ fn main() {
 
     let path = env_var("PATH");
     let rustc = env_var("RUSTC");
-    let bootstrap_cargo = env_var("BOOTSTRAP_CARGO");
-    let mut cmd = cmd(bootstrap_cargo);
+    let cargo = env_var("CARGO");
+    let mut cmd = cmd(cargo);
     cmd.args(&[
         "build",
         "--manifest-path",
diff --git a/tests/run-make/thumb-none-cortex-m/rmake.rs b/tests/run-make/thumb-none-cortex-m/rmake.rs
index 0ddb91d378f..9112646290f 100644
--- a/tests/run-make/thumb-none-cortex-m/rmake.rs
+++ b/tests/run-make/thumb-none-cortex-m/rmake.rs
@@ -36,10 +36,10 @@ fn main() {
 
     let path = env_var("PATH");
     let rustc = env_var("RUSTC");
-    let bootstrap_cargo = env_var("BOOTSTRAP_CARGO");
-    // FIXME: extract bootstrap cargo invocations to a proper command
+    let cargo = env_var("CARGO");
+    // FIXME: extract cargo invocations to a proper command
     // https://github.com/rust-lang/rust/issues/128734
-    let mut cmd = cmd(bootstrap_cargo);
+    let mut cmd = cmd(cargo);
     cmd.args(&[
         "build",
         "--manifest-path",