IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 8, 2004, 9:34:28 AM (22 years ago)
Author:
desonia
Message:

enhanced the parsing of host to search for the hostname of the current machine
explicitly, not just single word with '.' in it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/runTest

    r854 r1198  
    3030#
    3131#  $Revison:  $  $Name: not supported by cvs2svn $
    32 #  $Date: 2004-06-04 02:41:17 $
     32#  $Date: 2004-07-08 19:34:18 $
    3333#
    3434#  Copyright 2004 Maui High Performance Computering Center, University of Hawaii
     
    108108        open(MODFILE, ">temp/$testFile.stdout.mod");
    109109        # Replace the variable date, time and host information with constants
     110        $hostname = `hostname`;
     111        chop $hostname;
    110112        while( <OUTFILE> ) {
    111113            s/\d+:\d+:\d+/ <DATE> /;
    112114            s/\s+\d+:\d+:\d+\w/ <TIME> /;
    113             s/\|\s*[\w\.\-\_]+\s*\|/<HOST> |/;
     115            s/$hostname/<HOST>/;
    114116            # Filter lines with malloc.  This is an artifact of memory testing
    115117            # with the Mac testbed
     
    131133            s/\d+:\d+:\d+/ <DATE> /;
    132134            s/\s+\d+:\d+:\d+\w/ <TIME> /;
    133             s/\|\s*[\w\.\-\_]+\s*\|/<HOST> |/;
     135            s/$hostname/<HOST>/;
    134136            # Filter lines with malloc.  This is an artifact of memory testing
    135137            # with the Mac testbed
Note: See TracChangeset for help on using the changeset viewer.