File tree 1 file changed +6
-3
lines changed
src/tools/rustdoc-gui-test/src
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ fn find_librs<P: AsRef<Path>>(path: P) -> Option<PathBuf> {
67
67
None
68
68
}
69
69
70
- fn main ( ) {
70
+ fn main ( ) -> Result < ( ) , ( ) > {
71
71
let config = Arc :: new ( Config :: from_args ( env:: args ( ) . collect ( ) ) ) ;
72
72
73
73
// The goal here is to check if the necessary packages are installed, and if not, we
@@ -128,7 +128,10 @@ If you want to install the `browser-ui-test` dependency, run `npm install browse
128
128
}
129
129
}
130
130
131
- try_run ( & mut cargo, config. verbose ) ;
131
+ if !try_run ( & mut cargo, config. verbose ) {
132
+ eprintln ! ( "failed to document `{}`" , entry. path( ) . display( ) ) ;
133
+ panic ! ( "Cannot run rustdoc-gui tests" ) ;
134
+ }
132
135
}
133
136
}
134
137
@@ -158,5 +161,5 @@ If you want to install the `browser-ui-test` dependency, run `npm install browse
158
161
159
162
command. args ( & config. test_args ) ;
160
163
161
- try_run ( & mut command, config. verbose ) ;
164
+ if try_run ( & mut command, config. verbose ) { Ok ( ( ) ) } else { Err ( ( ) ) }
162
165
}
You can’t perform that action at this time.
0 commit comments