@@ -1911,15 +1911,18 @@ mod snapshot {
1911
1911
let ctx = TestCtx :: new ( ) ;
1912
1912
insta:: assert_snapshot!(
1913
1913
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" ] )
1920
1922
. render_steps( ) , @r"
1921
1923
[build] rustc 0 <host> -> Tidy 1 <host>
1922
1924
[test] tidy <>
1925
+ [build] rustdoc 0 <host>
1923
1926
[build] llvm <host>
1924
1927
[build] rustc 0 <host> -> rustc 1 <host>
1925
1928
[build] rustc 1 <host> -> std 1 <host>
@@ -1940,7 +1943,6 @@ mod snapshot {
1940
1943
[test] Pretty <host>
1941
1944
[build] rustc 1 <host> -> std 1 <host>
1942
1945
[build] rustc 0 <host> -> std 0 <host>
1943
- [build] rustdoc 0 <host>
1944
1946
[test] CrateLibrustc <host>
1945
1947
[build] rustc 1 <host> -> rustc 2 <host>
1946
1948
[test] crate-bootstrap <host> src/tools/coverage-dump
@@ -1976,8 +1978,6 @@ mod snapshot {
1976
1978
[test] rustc 0 <host> -> rust-analyzer 1 <host>
1977
1979
[doc] rustc (book) <host>
1978
1980
[test] rustc 1 <host> -> lint-docs 2 <host>
1979
- [doc] rustc 1 <host> -> std 1 <host> crates=[]
1980
- [test] rustdoc-js-std 1 <host>
1981
1981
[build] rustc 0 <host> -> RustdocTheme 1 <host>
1982
1982
[test] rustdoc-theme 1 <host>
1983
1983
[test] RustdocUi <host>
0 commit comments