Commit 9cdd0345 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Temporary change while debugging linktest; only notify testbed ops

when linktest fails on swapin path. Also, add a file link to the
swaplog file, which still contains the linktest output.
parent d923a8b2
......@@ -294,15 +294,23 @@ sub handler($)
sub notify()
my $lev = (defined($level) ? $level : $linktest_level);
my $logname = undef;
my $isopen;
my $filespec = "";
SENDMAIL("$user_name <$user_email>",
TBExptGetLogFile($pid, $eid, \$logname, \$isopen);
if (defined($logname)) {
$filespec = "\n\nfile://$logname\n";
"Linktest Failure: $pid/$eid",
"Failure in linktest (level $lev); ".
"returned non-zero status.\n".
"Activity log file at:\n\n".
" $TBBASE/spewlogfile.php3?pid=${pid}&eid=${eid}\n",
"$user_name <$user_email>",
"Cc: $TBOPS");
" $TBBASE/spewlogfile.php3?pid=${pid}&eid=${eid}\n".
"$user_name <$user_email>");
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