@@ -1856,15 +1856,18 @@ mod snapshot {
18561856 let ctx = TestCtx :: new ( ) ;
18571857 insta:: assert_snapshot!(
18581858 ctx. config( "test" )
1859- // Skip bootstrap tests, as for some reason the recursive nature of running
1860- // bootstrap tests under bootstrap tests causes non-deterministic snapshot diffs
1861- // on CI.
1862- . args( & [ "--skip" , "bootstrap" ] )
1863- // rustdoc-js-std requires nodejs to be present
1864- . args( & [ "--set" , "build.nodejs=/bin/nodejs" ] )
1859+ // Bootstrap only run by default on CI, so we have to emulate that also locally.
1860+ . args( & [ "--ci" , "true" ] )
1861+ // These rustdoc tests requires nodejs to be present.
1862+ // We can't easily opt out of it, so if it is present on the local PC, the test
1863+ // would have different result on CI, where nodejs might be missing.
1864+ . args( & [ "--skip" , "rustdoc-js-std" ] )
1865+ . args( & [ "--skip" , "rustdoc-js" ] )
1866+ . args( & [ "--skip" , "rustdoc-gui" ] )
18651867 . render_steps( ) , @r"
18661868 [build] rustc 0 <host> -> Tidy 1 <host>
18671869 [test] tidy <>
1870+ [build] rustdoc 0 <host>
18681871 [build] llvm <host>
18691872 [build] rustc 0 <host> -> rustc 1 <host>
18701873 [build] rustc 1 <host> -> std 1 <host>
@@ -1885,7 +1888,6 @@ mod snapshot {
18851888 [test] Pretty <host>
18861889 [build] rustc 1 <host> -> std 1 <host>
18871890 [build] rustc 0 <host> -> std 0 <host>
1888- [build] rustdoc 0 <host>
18891891 [test] CrateLibrustc <host>
18901892 [build] rustc 1 <host> -> rustc 2 <host>
18911893 [test] crate-bootstrap <host> src/tools/coverage-dump
@@ -1921,8 +1923,6 @@ mod snapshot {
19211923 [test] rustc 0 <host> -> rust-analyzer 1 <host>
19221924 [doc] rustc (book) <host>
19231925 [test] rustc 1 <host> -> lint-docs 2 <host>
1924- [doc] rustc 1 <host> -> std 1 <host> crates=[]
1925- [test] rustdoc-js-std 1 <host>
19261926 [build] rustc 0 <host> -> RustdocTheme 1 <host>
19271927 [test] rustdoc-theme 1 <host>
19281928 [test] RustdocUi <host>
0 commit comments