Author: cfinck Date: Sat Jan 17 14:39:59 2009 New Revision: 38849
URL: http://svn.reactos.org/svn/reactos?rev=38849&view=rev Log: A Wine test can output "1 failure" or "X failures" in its summary. I only supported the latter one so far, now both lines will work properly.
Modified: trunk/web/reactos.org/htdocs/testman/webservice/lib/WineTest.class.php
Modified: trunk/web/reactos.org/htdocs/testman/webservice/lib/WineTest.class.php URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/testman/webs... ============================================================================== --- trunk/web/reactos.org/htdocs/testman/webservice/lib/WineTest.class.php [iso-8859-1] (original) +++ trunk/web/reactos.org/htdocs/testman/webservice/lib/WineTest.class.php [iso-8859-1] Sat Jan 17 14:39:59 2009 @@ -72,7 +72,7 @@ // Validate and parse the log $line = strrchr($_POST["log"], ":"); - if(sscanf($line, ": %u tests executed (%u marked as todo, %u failures), %u skipped.", $count, $todo, $failures, $skipped) != 4) + if(sscanf($line, ": %u tests executed (%u marked as todo, %u %s%u skipped.", $count, $todo, $failures, $ignore, $skipped) != 5) return "Log is invalid!"; // Add the information into the DB