@@ -2042,15 +2042,18 @@ mod snapshot {
20422042 let ctx = TestCtx :: new ( ) ;
20432043 insta:: assert_snapshot!(
20442044 ctx. config( "test" )
2045- // Skip bootstrap tests, as for some reason the recursive nature of running
2046- // bootstrap tests under bootstrap tests causes non-deterministic snapshot diffs
2047- // on CI.
2048- . args( & [ "--skip" , "bootstrap" ] )
2049- // rustdoc-js-std requires nodejs to be present
2050- . args( & [ "--set" , "build.nodejs=/bin/nodejs" ] )
2045+ // Bootstrap only run by default on CI, so we have to emulate that also locally.
2046+ . args( & [ "--ci" , "true" ] )
2047+ // These rustdoc tests requires nodejs to be present.
2048+ // We can't easily opt out of it, so if it is present on the local PC, the test
2049+ // would have different result on CI, where nodejs might be missing.
2050+ . args( & [ "--skip" , "rustdoc-js-std" ] )
2051+ . args( & [ "--skip" , "rustdoc-js" ] )
2052+ . args( & [ "--skip" , "rustdoc-gui" ] )
20512053 . render_steps( ) , @r"
20522054 [build] rustc 0 <host> -> Tidy 1 <host>
20532055 [test] tidy <>
2056+ [build] rustdoc 0 <host>
20542057 [build] llvm <host>
20552058 [build] rustc 0 <host> -> rustc 1 <host>
20562059 [build] rustc 1 <host> -> std 1 <host>
@@ -2071,7 +2074,6 @@ mod snapshot {
20712074 [test] Pretty <host>
20722075 [build] rustc 1 <host> -> std 1 <host>
20732076 [build] rustc 0 <host> -> std 0 <host>
2074- [build] rustdoc 0 <host>
20752077 [test] CrateLibrustc <host>
20762078 [build] rustc 1 <host> -> rustc 2 <host>
20772079 [test] crate-bootstrap <host> src/tools/coverage-dump
@@ -2107,8 +2109,6 @@ mod snapshot {
21072109 [test] rustc 0 <host> -> rust-analyzer 1 <host>
21082110 [doc] rustc (book) <host>
21092111 [test] rustc 1 <host> -> lint-docs 2 <host>
2110- [doc] rustc 1 <host> -> std 1 <host> crates=[]
2111- [test] rustdoc-js-std 1 <host>
21122112 [build] rustc 0 <host> -> RustdocTheme 1 <host>
21132113 [test] rustdoc-theme 1 <host>
21142114 [test] RustdocUi <host>
0 commit comments