Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3dac888

Browse files
committed
Only run bootstrap tests in x test on CI
1 parent a955f1c commit 3dac888

File tree

1 file changed

+5
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+5
-1
lines changed

‎src/bootstrap/src/core/build_steps/test.rs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3132,7 +3132,11 @@ impl Step for Bootstrap {
31323132
}
31333133

31343134
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
3135-
run.path("src/bootstrap")
3135+
// Bootstrap tests might not be perfectly self-contained and can depend on the external
3136+
// environment, submodules that are checked out, etc.
3137+
// Therefore we only run them by default on CI.
3138+
let runs_on_ci = run.builder.config.is_running_on_ci;
3139+
run.path("src/bootstrap").default_condition(runs_on_ci)
31363140
}
31373141

31383142
fn make_run(run: RunConfig<'_>) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /