@@ -193,37 +193,37 @@ impl StepDescription {
193193 ) ;
194194 }
195195
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) {
198198 if desc. default && should_run. is_really_default {
199199 for pathset in & should_run. paths {
200200 desc. maybe_run ( builder, pathset) ;
201201 }
202202 }
203203 }
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+ }
211205
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+ } ;
222212
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) ;
225221 }
226222 }
223+
224+ if !attempted_run {
225+ panic ! ( "error: no rules matched {}" , path. display( ) ) ;
226+ }
227227 }
228228 }
229229}
0 commit comments