@@ -2042,15 +2042,18 @@ mod snapshot {
2042
2042
let ctx = TestCtx :: new ( ) ;
2043
2043
insta:: assert_snapshot!(
2044
2044
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" ] )
2051
2053
. render_steps( ) , @r"
2052
2054
[build] rustc 0 <host> -> Tidy 1 <host>
2053
2055
[test] tidy <>
2056
+ [build] rustdoc 0 <host>
2054
2057
[build] llvm <host>
2055
2058
[build] rustc 0 <host> -> rustc 1 <host>
2056
2059
[build] rustc 1 <host> -> std 1 <host>
@@ -2071,7 +2074,6 @@ mod snapshot {
2071
2074
[test] Pretty <host>
2072
2075
[build] rustc 1 <host> -> std 1 <host>
2073
2076
[build] rustc 0 <host> -> std 0 <host>
2074
- [build] rustdoc 0 <host>
2075
2077
[test] CrateLibrustc <host>
2076
2078
[build] rustc 1 <host> -> rustc 2 <host>
2077
2079
[test] crate-bootstrap <host> src/tools/coverage-dump
@@ -2107,8 +2109,6 @@ mod snapshot {
2107
2109
[test] rustc 0 <host> -> rust-analyzer 1 <host>
2108
2110
[doc] rustc (book) <host>
2109
2111
[test] rustc 1 <host> -> lint-docs 2 <host>
2110
- [doc] rustc 1 <host> -> std 1 <host> crates=[]
2111
- [test] rustdoc-js-std 1 <host>
2112
2112
[build] rustc 0 <host> -> RustdocTheme 1 <host>
2113
2113
[test] rustdoc-theme 1 <host>
2114
2114
[test] RustdocUi <host>
0 commit comments