Commit 267ec2cd authored by Mike Hibler's avatar Mike Hibler

Just print a summary message about nodes not supporting Linktest rather

than a message per node.  This is less annoying if say your experiment
consists of 600 planetlab nodes.
parent 22ce420b
......@@ -32,7 +32,6 @@ my $optlist = "dkl:o:t:mfr";
my $debug = 2;
my $cancel = 0;
my $sendmail = 0;
my $hosed = 0;
my $forcerun = 0;
my $reportonly = 0;
my $timeout;
......@@ -260,17 +259,21 @@ $query_result =
"where v.pid='$pid' and v.eid='$eid'");
my @hosed = ();
while (my ($vname,$osname,$gotlinktest) = $query_result->fetchrow_array()) {
if (! defined($gotlinktest) || !$gotlinktest) {
print STDERR
"*** Node $vname is running an OSID ($osname) that does not ".
"support linktest!\n";
$hosed++;
push(@hosed, $vname);
}
}
if ($hosed && !$forcerun) {
die("*** $0:\n".
" Aborting linktest since not all nodes support it!\n");
if (@hosed > 0) {
print STDERR
"*** Nodes running an OSID that does not support linktest:\n";
print STDERR
"*** ", join(' ', @hosed), "\n";
if (!$forcerun) {
die("*** $0:\n".
" Aborting linktest since not all nodes support it!\n");
}
}
#
......
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