[llvm-commits] CVS: nightlytest-serverside/ProgramResults.php
Jim Laskey
jlaskey at apple.com
Wed Aug 30 11:47:44 PDT 2006
Changes in directory nightlytest-serverside:
ProgramResults.php updated: 1.9 -> 1.10
---
Log message:
Debugging newly pass fail report.
---
Diffs of the changes: (+27 -23)
ProgramResults.php | 50 +++++++++++++++++++++++++++-----------------------
1 files changed, 27 insertions(+), 23 deletions(-)
Index: nightlytest-serverside/ProgramResults.php
diff -u nightlytest-serverside/ProgramResults.php:1.9 nightlytest-serverside/ProgramResults.php:1.10
--- nightlytest-serverside/ProgramResults.php:1.9 Tue Aug 22 12:26:12 2006
+++ nightlytest-serverside/ProgramResults.php Wed Aug 30 13:47:30 2006
@@ -435,7 +435,7 @@
* Get New Tests
*
* This is somewhat of a hack because from night 684 forward we now store the test
- * in their own table as oppoesd in the night table.
+ * in their own table as opposed in the night table.
*/
function getNewTests($cur_id, $prev_id, $mysql_link){
if(strcmp($prev_id, "")===0 || strcmp($cur_id, "")===0){
@@ -463,8 +463,9 @@
$query = "SELECT * FROM tests WHERE night=$cur_id";
$program_query = mysql_query($query) or die (mysql_error());
while($row = mysql_fetch_array($program_query)){
- if( !isset($test_hash["{$row['measure']} - {$row['program']}"])){
- $result .= "{$row['measure']} - {$row['program']}<br>\n";
+ $test_key = "{$row['measure']} - {$row['program']}";
+ if(!isset($test_hash[$test_key])){
+ $result .= $test_key . "<br>\n";
}
}
mysql_free_result($program_query);
@@ -476,7 +477,7 @@
* Get Removed Tests
*
* This is somewhat of a hack because from night 684 forward we now store the test
- * in their own table as oppoesd in the night table.
+ * in their own table as opposed in the night table.
*/
function getRemovedTests($cur_id, $prev_id, $mysql_link){
if(strcmp($prev_id, "")===0 || strcmp($cur_id, "")===0){
@@ -494,18 +495,19 @@
}
else{
$test_hash=array();
- $query = "SELECT * FROM tests WHERE night=$cur_id";
+ $query = "SELECT * FROM tests WHERE night=$prev_id";
$program_query = mysql_query($query) or die (mysql_error());
while($row = mysql_fetch_array($program_query)){
$test_hash["{$row['measure']} - {$row['program']}"]=1;
}
mysql_free_result($program_query);
- $query = "SELECT * FROM tests WHERE night=$prev_id";
+ $query = "SELECT * FROM tests WHERE night=$cur_id";
$program_query = mysql_query($query) or die (mysql_error());
while($row = mysql_fetch_array($program_query)){
- if( !isset($test_hash["{$row['measure']} - {$row['program']}"])){
- $result .= "{$row['measure']} - {$row['program']}<br>\n";
+ $test_key = "{$row['measure']} - {$row['program']}";
+ if(!isset($test_hash[$test_key])){
+ $result .= $test_key . "<br>\n";
}
}
mysql_free_result($program_query);
@@ -517,7 +519,7 @@
* Get Fixed Tests
*
* This is somewhat of a hack because from night 684 forward we now store the test
- * in their own table as oppoesd in the night table.
+ * in their own table as opposed in the night table.
*/
function getFixedTests($cur_id, $prev_id, $mysql_link){
if(strcmp($prev_id, "")===0 || strcmp($cur_id, "")===0){
@@ -535,21 +537,22 @@
}
else{
$test_hash=array();
- $query = "SELECT * FROM tests WHERE night=$cur_id";
+ $query = "SELECT * FROM tests WHERE night=$prev_id";
$program_query = mysql_query($query) or die (mysql_error());
while($row = mysql_fetch_array($program_query)){
- if(strcmp("{$row['result']}", "PASS")===0){
+ if(strcmp("{$row['result']}", "PASS")!==0){
$test_hash["{$row['measure']} - {$row['program']}"]=$row['result'];
}
}
mysql_free_result($program_query);
- $query = "SELECT * FROM tests WHERE night=$prev_id";
+ $query = "SELECT * FROM tests WHERE night=$cur_id";
$program_query = mysql_query($query) or die (mysql_error());
while($row = mysql_fetch_array($program_query)){
- if( isset($test_hash["{$row['measure']} - {$row['program']}"]) &&
- strcmp($test_hash["{$row['measure']} - {$row['program']}"], $row['result'])!==0){
- $result .= "{$row['measure']} - {$row['program']}<br>\n";
+ $test_key = "{$row['measure']} - {$row['program']}";
+ if(isset($test_hash[$test_key]) &&
+ strcmp($test_hash[$test_key], $row['result'])!==0){
+ $result .= $test_key . "<br>\n";
}
}
mysql_free_result($program_query);
@@ -579,21 +582,22 @@
}
else{
$test_hash=array();
- $query = "SELECT * FROM tests WHERE night=$prev_id";
+ $query = "SELECT * FROM tests WHERE night=$cur_id";
$program_query = mysql_query($query) or die (mysql_error());
while($row = mysql_fetch_array($program_query)){
- if(strcmp("{$row['result']}", "PASS")===0){
+ if(strcmp("{$row['result']}", "PASS")!==0){
$test_hash["{$row['measure']} - {$row['program']}"]=$row['result'];
- }
+ }
}
mysql_free_result($program_query);
- $query = "SELECT * FROM tests WHERE night=$cur_id";
+ $query = "SELECT * FROM tests WHERE night=$prev_id";
$program_query = mysql_query($query) or die (mysql_error());
while($row = mysql_fetch_array($program_query)){
- if( isset($test_hash["{$row['measure']} - {$row['program']}"]) &&
- strcmp($test_hash["{$row['measure']} - {$row['program']}"], $row['result'])!==0){
- $result .= "{$row['measure']} - {$row['program']}<br>\n";
+ $test_key = "{$row['measure']} - {$row['program']}";
+ if(isset($test_hash[$test_key]) &&
+ strcmp($test_hash[$test_key], $row['result'])!==0){
+ $result .= $test_key . "<br>\n";
}
}
mysql_free_result($program_query);
@@ -691,4 +695,4 @@
}
-?>
\ No newline at end of file
+?>
More information about the llvm-commits
mailing list