fix upgrade tests
This commit is contained in:
parent
7e5d3627e1
commit
b5542c9902
7 changed files with 9 additions and 9 deletions
|
|
@ -346,7 +346,7 @@ sub runUpgradeFile {
|
|||
my ($configFile, $version, $filename) = @_;
|
||||
my $has_run = $self->_files_run->{ Cwd::realpath($filename) } ++;
|
||||
|
||||
try {
|
||||
return try {
|
||||
my $upgrade_class = $self->classForFile($filename);
|
||||
my $upgrade_file = $upgrade_class->new(
|
||||
version => $version,
|
||||
|
|
@ -361,12 +361,12 @@ sub runUpgradeFile {
|
|||
catch {
|
||||
when (/^No upgrade package/) {
|
||||
warn $_;
|
||||
return;
|
||||
}
|
||||
default {
|
||||
die $_;
|
||||
}
|
||||
};
|
||||
return;
|
||||
}
|
||||
|
||||
=head2 classForFile ( $file )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue