From 2e195c524de09b52472cb29bde270448d8a1f83d Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 11 Jan 2022 13:10:43 -0500 Subject: [PATCH] evalSucceds/evalFails: log that the success or failure was not expected --- t/lib/CliRunners.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/lib/CliRunners.pm b/t/lib/CliRunners.pm index 21235837..e693eeb7 100644 --- a/t/lib/CliRunners.pm +++ b/t/lib/CliRunners.pm @@ -27,7 +27,7 @@ sub evalSucceeds { $jobset->discard_changes; # refresh from DB if ($res) { chomp $stdout; chomp $stderr; - print STDERR "Evaluation errors for jobset ".$jobset->project->name.":".$jobset->name.": \n".$jobset->errormsg."\n" if $jobset->errormsg; + print STDERR "Evaluation unexpectedly failed for jobset ".$jobset->project->name.":".$jobset->name.": \n".$jobset->errormsg."\n" if $jobset->errormsg; print STDERR "STDOUT: $stdout\n" if $stdout ne ""; print STDERR "STDERR: $stderr\n" if $stderr ne ""; } @@ -40,7 +40,7 @@ sub evalFails { $jobset->discard_changes; # refresh from DB if (!$res) { chomp $stdout; chomp $stderr; - print STDERR "Evaluation errors for jobset ".$jobset->project->name.":".$jobset->name.": \n".$jobset->errormsg."\n" if $jobset->errormsg; + print STDERR "Evaluation unexpectedly succeeded for jobset ".$jobset->project->name.":".$jobset->name.": \n".$jobset->errormsg."\n" if $jobset->errormsg; print STDERR "STDOUT: $stdout\n" if $stdout ne ""; print STDERR "STDERR: $stderr\n" if $stderr ne ""; }