@@ -1911,15 +1911,18 @@ mod snapshot {
19111911 let ctx = TestCtx :: new ( ) ;
19121912 insta:: assert_snapshot!(
19131913 ctx. config( "test" )
1914- // Skip bootstrap tests, as for some reason the recursive nature of running
1915- // bootstrap tests under bootstrap tests causes non-deterministic snapshot diffs
1916- // on CI.
1917- . args( & [ "--skip" , "bootstrap" ] )
1918- // rustdoc-js-std requires nodejs to be present
1919- . args( & [ "--set" , "build.nodejs=/bin/nodejs" ] )
1914+ // Bootstrap only run by default on CI, so we have to emulate that also locally.
1915+ . args( & [ "--ci" , "true" ] )
1916+ // These rustdoc tests requires nodejs to be present.
1917+ // We can't easily opt out of it, so if it is present on the local PC, the test
1918+ // would have different result on CI, where nodejs might be missing.
1919+ . args( & [ "--skip" , "rustdoc-js-std" ] )
1920+ . args( & [ "--skip" , "rustdoc-js" ] )
1921+ . args( & [ "--skip" , "rustdoc-gui" ] )
19201922 . render_steps( ) , @r"
19211923 [build] rustc 0 <host> -> Tidy 1 <host>
19221924 [test] tidy <>
1925+ [build] rustdoc 0 <host>
19231926 [build] llvm <host>
19241927 [build] rustc 0 <host> -> rustc 1 <host>
19251928 [build] rustc 1 <host> -> std 1 <host>
@@ -1940,7 +1943,6 @@ mod snapshot {
19401943 [test] Pretty <host>
19411944 [build] rustc 1 <host> -> std 1 <host>
19421945 [build] rustc 0 <host> -> std 0 <host>
1943- [build] rustdoc 0 <host>
19441946 [test] CrateLibrustc <host>
19451947 [build] rustc 1 <host> -> rustc 2 <host>
19461948 [test] crate-bootstrap <host> src/tools/coverage-dump
@@ -1976,8 +1978,6 @@ mod snapshot {
19761978 [test] rustc 0 <host> -> rust-analyzer 1 <host>
19771979 [doc] rustc (book) <host>
19781980 [test] rustc 1 <host> -> lint-docs 2 <host>
1979- [doc] rustc 1 <host> -> std 1 <host> crates=[]
1980- [test] rustdoc-js-std 1 <host>
19811981 [build] rustc 0 <host> -> RustdocTheme 1 <host>
19821982 [test] rustdoc-theme 1 <host>
19831983 [test] RustdocUi <host>
0 commit comments