about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgimbles <yusharora@protonmail.com>2022-05-07 09:07:07 +0530
committergimbles <yusharora@protonmail.com>2022-05-07 09:07:07 +0530
commit72d2d6a4ba40fae2254a03f7782a80b8b315ddbc (patch)
treed7bc4672101adb57e1c78716995ce7b6dd10662a
parentbb1a03c4fcbe547168fab128fa39b08d1122a1c2 (diff)
downloadrust-72d2d6a4ba40fae2254a03f7782a80b8b315ddbc.tar.gz
rust-72d2d6a4ba40fae2254a03f7782a80b8b315ddbc.zip
Move check-bootstrap from a makefile rule to test::Bootstrap
-rw-r--r--src/bootstrap/mk/Makefile.in2
-rw-r--r--src/bootstrap/test.rs4
-rwxr-xr-xsrc/ci/run.sh2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/bootstrap/mk/Makefile.in b/src/bootstrap/mk/Makefile.in
index fd39944e176..5a1f2e70413 100644
--- a/src/bootstrap/mk/Makefile.in
+++ b/src/bootstrap/mk/Makefile.in
@@ -45,8 +45,6 @@ check-aux:
 		src/tools/cargo \
 		src/tools/cargotest \
 		$(BOOTSTRAP_ARGS)
-check-bootstrap:
-	$(Q)$(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap_test.py
 dist:
 	$(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
 distcheck:
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index f60766bde72..d7a29a6b6be 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -2356,6 +2356,10 @@ impl Step for Bootstrap {
 
     /// Tests the build system itself.
     fn run(self, builder: &Builder<'_>) {
+        let mut check_bootstrap = Command::new(&builder.python());
+        check_bootstrap.arg("bootstrap_test.py").current_dir(builder.src.join("src/bootstrap/"));
+        try_run(builder, &mut check_bootstrap);
+
         let mut cmd = Command::new(&builder.initial_cargo);
         cmd.arg("test")
             .current_dir(builder.src.join("src/bootstrap"))
diff --git a/src/ci/run.sh b/src/ci/run.sh
index 948445427d9..5f843a13bcd 100755
--- a/src/ci/run.sh
+++ b/src/ci/run.sh
@@ -141,8 +141,6 @@ $SRC/configure $RUST_CONFIGURE_ARGS
 
 retry make prepare
 
-make check-bootstrap
-
 # Display the CPU and memory information. This helps us know why the CI timing
 # is fluctuating.
 if isMacOS; then