File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,12 @@ impl StepDescription {
218
218
}
219
219
} else {
220
220
for path in paths {
221
+ // strip CurDir prefix if present
222
+ let path = match path. strip_prefix ( "." ) {
223
+ Ok ( p) => p,
224
+ Err ( _) => path,
225
+ } ;
226
+
221
227
let mut attempted_run = false ;
222
228
for ( desc, should_run) in v. iter ( ) . zip ( & should_runs) {
223
229
if let Some ( suite) = should_run. is_suite_path ( path) {
Original file line number Diff line number Diff line change @@ -1074,6 +1074,12 @@ impl Step for Compiletest {
1074
1074
// Get test-args by striping suite path
1075
1075
let mut test_args: Vec < & str > = paths
1076
1076
. iter ( )
1077
+ . map ( |p| {
1078
+ match p. strip_prefix ( "." ) {
1079
+ Ok ( path) => path,
1080
+ Err ( _) => p,
1081
+ }
1082
+ } )
1077
1083
. filter ( |p| p. starts_with ( suite_path) && p. is_file ( ) )
1078
1084
. map ( |p| p. strip_prefix ( suite_path) . unwrap ( ) . to_str ( ) . unwrap ( ) )
1079
1085
. collect ( ) ;
You can’t perform that action at this time.
0 commit comments