Commit 0deaa9d9 authored by frankiejol's avatar frankiejol
Browse files

fixed tests when there are no testing nodes

parent c739c9dc
......@@ -1146,7 +1146,7 @@ SKIP: {
$vm = undef;
} else {
$node = remote_node($vm_name);
$node = test_node($vm_name, $node);
$node = test_node($vm_name, $node) if $node;
$vm = undef if !$node;
}
......
......@@ -67,14 +67,18 @@ for my $vm_name ( 'Void', 'KVM') {
$vm = undef;
}
diag($msg) if !$vm;
skip($msg,10) if !$vm;
diag("Testing remote node in $vm_name");
my ($node1,$node2) = remote_node_2($vm_name);
ok($node2,"Expecting at least 2 nodes configured to test") or next;
if ( !$node2 ) {
$msg = "Expecting at least 2 nodes configured to test";
$vm = undef;
}
diag($msg) if !$vm;
skip($msg,10) if !$vm;
diag("Testing remote node in $vm_name");
clean_remote_node($node1);
clean_remote_node($node2) if $node2;
......
Supports Markdown
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