Skip to content

Commit

Permalink
Don't die if test can't list storage
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Mar 16, 2017
1 parent 023c2d6 commit 656520a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/lib/Test/Ravada.pm
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ sub _remove_old_disks_kvm {
eval { $vm->storage_pool->refresh() };
ok(!$@,"Expecting error = '' , got '".($@ or '')."'"
." after refresh storage pool") or return;
opendir my $ls,$dir_img or die "$! $dir_img";
opendir my $ls,$dir_img or return;
while (my $disk = readdir $ls) {
next if $disk !~ /^${name}_\d+.*\.(img|ro\.qcow2|qcow2)$/;

Expand Down

0 comments on commit 656520a

Please sign in to comment.