@@ -1995,15 +1995,18 @@ mod snapshot {
1995
1995
let ctx = TestCtx :: new ( ) ;
1996
1996
insta:: assert_snapshot!(
1997
1997
ctx. config( "test" )
1998
- // Skip bootstrap tests, as for some reason the recursive nature of running
1999
- // bootstrap tests under bootstrap tests causes non-deterministic snapshot diffs
2000
- // on CI.
2001
- . args( & [ "--skip" , "bootstrap" ] )
2002
- // rustdoc-js-std requires nodejs to be present
2003
- . args( & [ "--set" , "build.nodejs=/bin/nodejs" ] )
1998
+ // Bootstrap only run by default on CI, so we have to emulate that also locally.
1999
+ . args( & [ "--ci" , "true" ] )
2000
+ // These rustdoc tests requires nodejs to be present.
2001
+ // We can't easily opt out of it, so if it is present on the local PC, the test
2002
+ // would have different result on CI, where nodejs might be missing.
2003
+ . args( & [ "--skip" , "rustdoc-js-std" ] )
2004
+ . args( & [ "--skip" , "rustdoc-js" ] )
2005
+ . args( & [ "--skip" , "rustdoc-gui" ] )
2004
2006
. render_steps( ) , @r"
2005
2007
[build] rustc 0 <host> -> Tidy 1 <host>
2006
2008
[test] tidy <>
2009
+ [build] rustdoc 0 <host>
2007
2010
[build] llvm <host>
2008
2011
[build] rustc 0 <host> -> rustc 1 <host>
2009
2012
[build] rustc 1 <host> -> std 1 <host>
@@ -2024,7 +2027,6 @@ mod snapshot {
2024
2027
[test] Pretty <host>
2025
2028
[build] rustc 1 <host> -> std 1 <host>
2026
2029
[build] rustc 0 <host> -> std 0 <host>
2027
- [build] rustdoc 0 <host>
2028
2030
[test] CrateLibrustc <host>
2029
2031
[build] rustc 1 <host> -> rustc 2 <host>
2030
2032
[test] crate-bootstrap <host> src/tools/coverage-dump
@@ -2060,8 +2062,6 @@ mod snapshot {
2060
2062
[test] rustc 0 <host> -> rust-analyzer 1 <host>
2061
2063
[doc] rustc (book) <host>
2062
2064
[test] rustc 1 <host> -> lint-docs 2 <host>
2063
- [doc] rustc 1 <host> -> std 1 <host> crates=[]
2064
- [test] rustdoc-js-std 1 <host>
2065
2065
[build] rustc 0 <host> -> RustdocTheme 1 <host>
2066
2066
[test] rustdoc-theme 1 <host>
2067
2067
[test] RustdocUi <host>
0 commit comments