Commit 31562ed6 authored by Maximilien Colange's avatar Maximilien Colange

Fix test driver for more accurate report to TeamCity.

parent aca9c86d
......@@ -68,18 +68,18 @@ if ($? == 0) {
$failure = 1;
}
my $tc_output = join("|n|r", @outputs);
my $tc_output = join("|n", @outputs);
my $reg_output = join("\n", @outputs);
if ( $nominal ne $tested ) {
print "$reg_output\n";
print "\n##teamcity[testFailed name='$title' message='regression detected' details='$tc_output' expected='$nominal' actual='$tested'] \n";
print "Expected : $nominal Obtained : $tested \n";
} elsif ( $failure ) {
if ( $failure ) {
print "$reg_output\n";
print "\n##teamcity[testFailed name='$title' message='test did not exit properly' details='$tc_output' expected='$nominal' actual='$tested'] \n";
print "Expected : $nominal Obtained : $tested \n";
my $exitval = $? >> 8;
print "test exited with value $exitval\n";
} elsif ( $nominal ne $tested ) {
print "$reg_output\n";
print "\n##teamcity[testFailed name='$title' message='regression detected' details='$tc_output' expected='$nominal' actual='$tested'] \n";
print "Expected : $nominal Obtained : $tested \n";
} else {
# print "##teamcity[buildStatisticValue key='testDuration' value='@tested[2]']\n";
# print "##teamcity[buildStatisticValue key='testMemory' value='@tested[3]']\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