[llvm-commits] CVS: nightlytest-serverside/ProgramResults.php

Patrick Jenkins pjenkins at apple.com
Tue Aug 22 10:26:26 PDT 2006



Changes in directory nightlytest-serverside:

ProgramResults.php updated: 1.8 -> 1.9
---
Log message:

Fixed an issue where instead of appending to list of new/removed/fixed/
broken tests, we were instead assigning the list. Therefore, only the
last discovered test change was being reported.



---
Diffs of the changes:  (+12 -12)

 ProgramResults.php |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)


Index: nightlytest-serverside/ProgramResults.php
diff -u nightlytest-serverside/ProgramResults.php:1.8 nightlytest-serverside/ProgramResults.php:1.9
--- nightlytest-serverside/ProgramResults.php:1.8	Mon Aug 21 15:21:55 2006
+++ nightlytest-serverside/ProgramResults.php	Tue Aug 22 12:26:12 2006
@@ -453,18 +453,18 @@
   }
   else{
     $test_hash=array();
-    $query = "SELECT * FROM tests WHERE night=$prev_id and measure!=\"dejagnu\"";
+    $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=$cur_id and measure!=\"dejagnu\"";
+    $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";
+	$result .= "{$row['measure']} - {$row['program']}<br>\n";
       }
     }
     mysql_free_result($program_query);
@@ -494,18 +494,18 @@
   }
   else{
     $test_hash=array();
-    $query = "SELECT * FROM tests WHERE night=$cur_id and measure!=\"dejagnu\"";
+    $query = "SELECT * FROM tests WHERE night=$cur_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  and measure!=\"dejagnu\"";
+    $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']}"])){
-	$result = "{$row['measure']} - {$row['program']}<br>\n";
+	$result .= "{$row['measure']} - {$row['program']}<br>\n";
       }
     }
     mysql_free_result($program_query);
@@ -535,7 +535,7 @@
   }
   else{
     $test_hash=array();
-    $query = "SELECT * FROM tests WHERE night=$cur_id and measure!=\"dejagnu\"";
+    $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){
@@ -544,12 +544,12 @@
     }
     mysql_free_result($program_query);
 
-    $query = "SELECT * FROM tests WHERE night=$prev_id and measure!=\"dejagnu\"";
+    $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";
+	$result .= "{$row['measure']} - {$row['program']}<br>\n";
       }
     }
     mysql_free_result($program_query);
@@ -579,7 +579,7 @@
   }
   else{
     $test_hash=array();
-    $query = "SELECT * FROM tests WHERE night=$prev_id and measure!=\"dejagnu\"";
+    $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){
@@ -588,12 +588,12 @@
     }
     mysql_free_result($program_query);
 
-    $query = "SELECT * FROM tests WHERE night=$cur_id and measure!=\"dejagnu\"";
+    $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";
+        $result .= "{$row['measure']} - {$row['program']}<br>\n";
       }
     }
     mysql_free_result($program_query);






More information about the llvm-commits mailing list