Commit cf1a91ea authored by Francesc Guasch's avatar Francesc Guasch
Browse files

Fixed MD5 test when no local apache installed

parent f530afff
......@@ -37,7 +37,7 @@ sub test_isos_vm {
my $iso;
$iso = $vm->_search_iso($row->{id});
ok($iso,"Expecting a ISO description");
ok($iso,"Expecting an ISO row for id=$row->{id}");
like($iso->{url},qr{.iso}) or exit;
like($iso->{url},qr($row->{file_re})) or exit if $row->{file_re};
......@@ -113,8 +113,14 @@ sub test_isos_already_there {
ok($iso_mock,"Expecting an ISO for the 'mock' template");
ok($iso_mock->{device},"Expecting device in ISO ".Dumper($iso_mock));
my $iso = $vm->_search_iso($id);
ok($iso->{device},"Expecting device in ISO ".Dumper($iso)) or return;
my $iso;
eval { $iso = $vm->_search_iso($id) };
if ($@ && $@ =~ /Can't connect to/i) {
diag("Skipped test $@");
} else {
ok($iso->{device},"Expecting device in ISO ".Dumper($iso)) or return;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment