[TESTMAN]

- highlight excessive machine reboots as requested by Thomas
ONLINE-641

svn path=/trunk/; revision=983
This commit is contained in:
Kamil Hornicek 2016-10-18 17:26:12 +00:00
parent 8b8df06f4a
commit 392e450866
2 changed files with 5 additions and 1 deletions

View File

@ -73,8 +73,11 @@
$table_separator .= "<td>&nbsp;</td>";
foreach ($performance as $key => $val)
$performance[$key] .= sprintf('<td><div title="%s" class="box performancetests">%s <span class="diff">%s</span></div></td>', $testman_langres[$key], $row[$key], GetDifference($row, $prev_row, $key, true));
{
$failed_reboots = ($key == 'reboots' && $row[$key] > MACHINE_REBOOTS_THRESHOLD) ? ' worse' : '';
$performance[$key] .= sprintf('<td><div title="%s" class="box performancetests%s">%s <span class="diff">%s</span></div></td>', $testman_langres[$key], $failed_reboots, $row[$key], GetDifference($row, $prev_row, $key, true));
}
// Get the test results for each column
$result_stmt[$i] = $reader->getListResultInfoStatement($i);

View File

@ -16,3 +16,4 @@
define("DEFAULT_SEARCH_SOURCE", "Build GCCLin_x86 on Test KVM");
define("MAX_COMPARE_RESULTS", 8);
define("RESULTS_PER_PAGE", 10);
define("MACHINE_REBOOTS_THRESHOLD", 2);