Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
cf1a91ea
Commit
cf1a91ea
authored
Sep 20, 2017
by
Francesc Guasch
Browse files
Fixed MD5 test when no local apache installed
parent
f530afff
Changes
1
Hide whitespace changes
Inline
Side-by-side
t/kvm/m10_md5.t
View file @
cf1a91ea
...
...
@@ -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 a
n
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
{
is
(
$@
,'');
ok
(
$iso
->
{
device
},"
Expecting device in ISO
"
.
Dumper
(
$iso
))
or
return
;
}
_remove_iso
(
$vm_name
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment