[llvm-commits] CVS: nightlytest-serverside/ProgramResults.php
Jim Laskey
jlaskey at apple.com
Sat Sep 16 18:43:44 PDT 2006
Changes in directory nightlytest-serverside:
ProgramResults.php updated: 1.78 -> 1.79
---
Log message:
Debugging #18
---
Diffs of the changes: (+4 -12)
ProgramResults.php | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
Index: nightlytest-serverside/ProgramResults.php
diff -u nightlytest-serverside/ProgramResults.php:1.78 nightlytest-serverside/ProgramResults.php:1.79
--- nightlytest-serverside/ProgramResults.php:1.78 Sat Sep 16 20:40:22 2006
+++ nightlytest-serverside/ProgramResults.php Sat Sep 16 20:43:30 2006
@@ -630,14 +630,7 @@
* hash and now pass.
*/
function getPassingTests($id, $test_hash) {
- $result = "";
-
- $result .= "OLD\n";
- foreach ($test_hash as $key => $value) {
- $result .= "$key [$value]\n";
- }
- $result .= "\n\nNEW\n";
-
+ $passing = "";
$query = "SELECT program, result, measure FROM tests WHERE night=$id ORDER BY program ASC, measure ASC";
$program_query = mysql_query($query) or die (mysql_error());
while ($row = mysql_fetch_assoc($program_query)) {
@@ -645,14 +638,13 @@
$program = trimTestPath($row['program']);
$measure = $row['measure'];
$result = $test_hash[$program];
-// if (strpos("$result", $measure) !== false) {
-if(1) {
- $result .= "$program [$measure]\n";
+ if (strpos("$result", $measure) !== false) {
+ $passing .= "$program [$measure]\n";
}
}
}
mysql_free_result($program_query);
- return $result;
+ return $passing;
}
/*
More information about the llvm-commits
mailing list