@@ -193,37 +193,37 @@ impl StepDescription {
193
193
) ;
194
194
}
195
195
196
- if paths. is_empty ( ) {
197
- for ( desc, should_run) in v. iter ( ) . zip ( should_runs) {
196
+ if paths. is_empty ( ) || builder . config . include_default_paths {
197
+ for ( desc, should_run) in v. iter ( ) . zip ( & should_runs) {
198
198
if desc. default && should_run. is_really_default {
199
199
for pathset in & should_run. paths {
200
200
desc. maybe_run ( builder, pathset) ;
201
201
}
202
202
}
203
203
}
204
- } else {
205
- for path in paths {
206
- // strip CurDir prefix if present
207
- let path = match path. strip_prefix ( "." ) {
208
- Ok ( p) => p,
209
- Err ( _) => path,
210
- } ;
204
+ }
211
205
212
- let mut attempted_run = false ;
213
- for ( desc, should_run) in v. iter ( ) . zip ( & should_runs) {
214
- if let Some ( suite) = should_run. is_suite_path ( path) {
215
- attempted_run = true ;
216
- desc. maybe_run ( builder, suite) ;
217
- } else if let Some ( pathset) = should_run. pathset_for_path ( path) {
218
- attempted_run = true ;
219
- desc. maybe_run ( builder, pathset) ;
220
- }
221
- }
206
+ for path in paths {
207
+ // strip CurDir prefix if present
208
+ let path = match path. strip_prefix ( "." ) {
209
+ Ok ( p) => p,
210
+ Err ( _) => path,
211
+ } ;
222
212
223
- if !attempted_run {
224
- panic ! ( "error: no rules matched {}" , path. display( ) ) ;
213
+ let mut attempted_run = false ;
214
+ for ( desc, should_run) in v. iter ( ) . zip ( & should_runs) {
215
+ if let Some ( suite) = should_run. is_suite_path ( path) {
216
+ attempted_run = true ;
217
+ desc. maybe_run ( builder, suite) ;
218
+ } else if let Some ( pathset) = should_run. pathset_for_path ( path) {
219
+ attempted_run = true ;
220
+ desc. maybe_run ( builder, pathset) ;
225
221
}
226
222
}
223
+
224
+ if !attempted_run {
225
+ panic ! ( "error: no rules matched {}" , path. display( ) ) ;
226
+ }
227
227
}
228
228
}
229
229
}
0 commit comments