IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 15, 2004, 11:44:22 AM (22 years ago)
Author:
desonia
Message:

Fixed the double counting of testpoints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel1/psLib/test/FullUnitTest

    r1035 r1048  
    1919#  RETURN : integer number of tests which failed
    2020#
    21 #  $Revision: 1.7 $  $Name: not supported by cvs2svn $
    22 #  $Date: 2004-06-15 00:19:42 $
     21#  $Revision: 1.7.2.1 $  $Name: not supported by cvs2svn $
     22#  $Date: 2004-06-15 21:44:22 $
    2323#
    2424#  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    302302            $retVal = $?;
    303303            # Count testpoints
    304             $totalPoints = `grep -c '***** TESTPOINT *****' temp/$files[$j].stdout`;
    305             $totalPoints += `grep -c '***** TESTPOINT *****' temp/$files[$j].stderr`;
     304            $testPattern = "\"\\*\\*\\*\\* TESTPOINT \\*\\*\\*\\*\"";
     305            $totalPoints = `grep -c $testPattern temp/$files[$j].stdout`;
     306            $totalPoints += `grep -c $testPattern temp/$files[$j].stderr`;
    306307            $failPoints = `grep "> TESTPOINT FAILED" temp/$files[$j].stdout | wc -l`;
    307308            $failPoints += `grep "> TESTPOINT FAILED" temp/$files[$j].stderr | wc -l`;
Note: See TracChangeset for help on using the changeset viewer.