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

Jim Laskey jlaskey at apple.com
Wed Aug 30 14:20:15 PDT 2006



Changes in directory nightlytest-serverside:

ProgramResults.php updated: 1.16 -> 1.17
---
Log message:

Debugging newly pass fail report attempt #8.


---
Diffs of the changes:  (+7 -11)

 ProgramResults.php |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)


Index: nightlytest-serverside/ProgramResults.php
diff -u nightlytest-serverside/ProgramResults.php:1.16 nightlytest-serverside/ProgramResults.php:1.17
--- nightlytest-serverside/ProgramResults.php:1.16	Wed Aug 30 16:08:06 2006
+++ nightlytest-serverside/ProgramResults.php	Wed Aug 30 16:20:01 2006
@@ -561,7 +561,7 @@
     $query = "SELECT * FROM program 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("{$row['result']}" !~ \\*\){
         $test_hash["{$row['program']}"]=$row['result'];
       }    
     }
@@ -571,10 +571,8 @@
     $program_query = mysql_query($query) or die (mysql_error());
     while($row = mysql_fetch_array($program_query)){
       $test_key = "{$row['program']}";
-      if(isset($test_hash[$test_key]) && 
-         strcmp($test_hash[$test_key], $row['result'])!==0){
-        // $result .= $test_key . "<br>\n";
-        $result .= $row['result'] . ":" . $test_key . "<br>\n";
+      if(isset($test_hash[$test_key]) && "{$row['result']}" =~ \\*\){
+        $result .= $test_key . "<br>\n";
       }
     }
     mysql_free_result($program_query);
@@ -628,8 +626,8 @@
     $query = "SELECT * FROM program 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){
-        $test_hash["{$row['program']}"]=$row['result'];
+      if("{$row['result']}" =~ \\*\){
+        $test_hash["{$row['program']}"]=1;
       }    
     }
     mysql_free_result($program_query);
@@ -638,10 +636,8 @@
     $program_query = mysql_query($query) or die (mysql_error());
     while($row = mysql_fetch_array($program_query)){
       $test_key = "{$row['program']}";
-      if(isset($test_hash[$test_key]) && 
-         strcmp($test_hash[$test_key], $row['result'])!==0){
-        // $result .= $test_key . "<br>\n";
-        $result .= $row['result'] . ":" . $test_key . "<br>\n";
+      if(isset($test_hash[$test_key]) && "{$row['result']}" !~ \\*\){
+        $result .= $test_key . "<br>\n";
       }
     }
     mysql_free_result($program_query);






More information about the llvm-commits mailing list