Skip to content

Commit

Permalink
Warn if it can't find requested id_iso
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Sep 18, 2017
1 parent 4a6a0ef commit 14e1fdb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions t/lib/Test/Ravada.pm
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ sub create_domain {
my $user = (shift or $USER_ADMIN);
my $id_iso = shift;

$id_iso = search_id_iso($id_iso)
if $id_iso && $id_iso !~ /^\d+$/;
if ( $id_iso && $id_iso !~ /^\d+$/) {
my $iso_name = $id_iso;
$id_iso = search_id_iso($iso_name);
warn "I can't find iso $iso_name" if !defined $id_iso;
}
my $vm = rvd_back()->search_vm($vm_name);
ok($vm,"Expecting VM $vm_name, got ".$vm->type) or return;

Expand Down

0 comments on commit 14e1fdb

Please sign in to comment.