mail[Wesnoth-commits] r28734 - in /branches/resources/tests.wesnoth.org: autotester/run_unit_tests.sh include/Build.php


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by paniemin on August 18, 2008 - 23:59:
Author: suokko
Date: Mon Aug 18 23:59:51 2008
New Revision: 28734

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28734&view=rev
Log:
Fixed build error message to show if it contains quote

Modified:
    branches/resources/tests.wesnoth.org/autotester/run_unit_tests.sh
    branches/resources/tests.wesnoth.org/include/Build.php

Modified: branches/resources/tests.wesnoth.org/autotester/run_unit_tests.sh
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/resources/tests.wesnoth.org/autotester/run_unit_tests.sh?rev=28734&r1=28733&r2=28734&view=diff
==============================================================================
--- branches/resources/tests.wesnoth.org/autotester/run_unit_tests.sh 
(original)
+++ branches/resources/tests.wesnoth.org/autotester/run_unit_tests.sh Mon Aug 
18 23:59:51 2008
@@ -21,5 +21,5 @@
 WEBDIR=$FULL_PATH/../htdocs
 
 cd $FULL_PATH/../trunk
-nice php -f ../autotester/run_unit_tests.php $WEBDIR
+nice php -f $FULL_PATH/run_unit_tests.php $WEBDIR
 #> $FULL_PATH/err.log

Modified: branches/resources/tests.wesnoth.org/include/Build.php
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/resources/tests.wesnoth.org/include/Build.php?rev=28734&r1=28733&r2=28734&view=diff
==============================================================================
--- branches/resources/tests.wesnoth.org/include/Build.php (original)
+++ branches/resources/tests.wesnoth.org/include/Build.php Mon Aug 18 
23:59:51 2008
@@ -207,13 +207,17 @@
                        }
                        if (strpos($this->error_msg,'error') !== false 
                                || strpos($this->error_msg,'ld returned'))
-                               $this->status = self::S_ERROR;
+                                       $this->status = self::S_ERROR;
+                       $this->error_msg = 
str_replace("'","\\'",$this->error_msg);
                }
 
                $this->time = time();
                $this->svn_revision = $revision;
 
-               return $this->status == self::S_GOOD;
+               if ($this->status == self::S_GOOD)
+                       return true;
+               $this->insert();
+               return false;
        }
 
        public function getTestName()




Related Messages


Powered by MHonArc, Updated Tue Aug 19 02:01:31 2008