Changes in directory nightlytest-serverside:
ProgramResults.php updated: 1.40 -> 1.41 --- Log message: reuse code for e-mail report #2 --- Diffs of the changes: (+16 -5) ProgramResults.php | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) Index: nightlytest-serverside/ProgramResults.php diff -u nightlytest-serverside/ProgramResults.php:1.40 nightlytest-serverside/ProgramResults.php:1.41 --- nightlytest-serverside/ProgramResults.php:1.40 Fri Sep 8 14:13:57 2006 +++ nightlytest-serverside/ProgramResults.php Fri Sep 8 14:22:55 2006 @@ -407,7 +407,7 @@ } if (strcmp($result, "") != 0) { - $result = " <font color=\"grey\">[" . $result . "]</font>"; + $result = " [" . $result . "]"; } return $result; @@ -472,6 +472,17 @@ } /* + * HTMLify test results + * + */ +function htmlifyTestResults($result) { + $result = preg_replace("/\n/", "<br>\n", $result); + $result = preg_replace("/\[/", "<font color=\"grey\">[", $result); + $result = preg_replace("/\]/", "]</font>", $result); + return $result; + } + +/* * Get set of tests * * Returns a hash of tests for a given night. @@ -532,7 +543,7 @@ $test_hash = getTestSet($prev_id, "program"); $result .= getExcludedTests($cur_id, "program", $test_hash); } - $result = preg_replace("/\n/","<br>\n", $result); + $result = htmlifyTestResults($result); return $result; } @@ -561,7 +572,7 @@ $test_hash = getTestSet($cur_id, "program"); $result .= getExcludedTests($prev_id, "program", $test_hash); } - $result = preg_replace("/\n/","<br>\n", $result); + $result = htmlifyTestResults($result); return $result; } @@ -642,7 +653,7 @@ $test_hash = getTestFailSet($prev_id, "program"); $result .= getPassingTests($cur_id, "program", $test_hash); } - $result = preg_replace("/\n/","<br>\n", $result); + $result = htmlifyTestResults($result); return $result; } @@ -671,7 +682,7 @@ $test_hash = getTestFailSet($cur_id, "program"); $result .= getPassingTests($prev_id, "program", $test_hash); } - $result = preg_replace("/\n/","<br>\n", $result); + $result = htmlifyTestResults($result); return $result; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits