Skip to content

Commit 72d2d6a

Browse files
author
gimbles
committed
Move check-bootstrap from a makefile rule to test::Bootstrap
1 parent bb1a03c commit 72d2d6a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/bootstrap/mk/Makefile.in

-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ check-aux:
4545
src/tools/cargo \
4646
src/tools/cargotest \
4747
$(BOOTSTRAP_ARGS)
48-
check-bootstrap:
49-
$(Q)$(CFG_PYTHON) $(CFG_SRC_DIR)src/bootstrap/bootstrap_test.py
5048
dist:
5149
$(Q)$(BOOTSTRAP) dist $(BOOTSTRAP_ARGS)
5250
distcheck:

src/bootstrap/test.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2356,6 +2356,10 @@ impl Step for Bootstrap {
23562356

23572357
/// Tests the build system itself.
23582358
fn run(self, builder: &Builder<'_>) {
2359+
let mut check_bootstrap = Command::new(&builder.python());
2360+
check_bootstrap.arg("bootstrap_test.py").current_dir(builder.src.join("src/bootstrap/"));
2361+
try_run(builder, &mut check_bootstrap);
2362+
23592363
let mut cmd = Command::new(&builder.initial_cargo);
23602364
cmd.arg("test")
23612365
.current_dir(builder.src.join("src/bootstrap"))

src/ci/run.sh

-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ $SRC/configure $RUST_CONFIGURE_ARGS
141141

142142
retry make prepare
143143

144-
make check-bootstrap
145-
146144
# Display the CPU and memory information. This helps us know why the CI timing
147145
# is fluctuating.
148146
if isMacOS; then

0 commit comments

Comments
 (0)