Skip to content

Commit

Permalink
Check for proposal roast versions case insensitively
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Sep 27, 2017
1 parent f62950d commit 85ae1c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion t/harness5
Expand Up @@ -206,7 +206,7 @@ sub convert_to_versioned_file {
# Make a new test file name using the version of the roast. The master
# branch would have version something like `6.d-proposals`; in such
# a case, we'll use the default test file list
my $new_file = $ver =~ /propos/ ? $file : "$file.$ver";
my $new_file = $ver =~ /propos/i ? $file : "$file.$ver";
if (-r $new_file) {
print "Testing Roast version $ver using test file list from $new_file\n";
return $new_file;
Expand Down
2 changes: 1 addition & 1 deletion t/harness6
Expand Up @@ -156,7 +156,7 @@ sub convert-to-versioned-file ($file) {
# Make a new test file name using the version of the roast. The master
# branch would have version something like `6.d-proposals`; in such
# a case, we'll use the default test file list
my $new-file = $file ~ (".$ver" unless $ver.contains: 'propos');
my $new-file = $file ~ (".$ver" unless $ver.lc.contains: 'propos');
if $new-file.IO.r {
print "Testing Roast version $ver using test file list from $new-file\n";
return $new-file;
Expand Down

0 comments on commit 85ae1c9

Please sign in to comment.