Changeset 6064dab in mainline for tools/checkers/stanse.py


Ignore:
Timestamp:
2010-01-04T23:55:24Z (14 years ago)
Author:
U-ALPHA\Administrator <Administrator@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
04c3a21f
Parents:
b766352
Message:

move checker tools one directory up
initial (dummy) support for Vcc

File:
1 moved

Legend:

Unmodified
Added
Removed
  • tools/checkers/stanse.py

    rb766352 r6064dab  
    3434import os
    3535import subprocess
     36import jobfile
    3637
    3738jobs = [
     
    4344        "Print usage syntax"
    4445        print prname + " <ROOT>"
    45 
    46 def parse_arg(record):
    47         "Parse jobfile line arguments"
    48        
    49         arg = []
    50         i = 0
    51         current = ""
    52         nil = True
    53         inside = False
    54        
    55         while (i < len(record)):
    56                 if (inside):
    57                         if (record[i] == "}"):
    58                                 inside = False
    59                         else:
    60                                 current = "%s%s" % (current, record[i])
    61                 else:
    62                         if (record[i] == "{"):
    63                                 nil = False
    64                                 inside = True
    65                         elif (record[i] == ","):
    66                                 arg.append(current)
    67                                 current = ""
    68                                 nil = True
    69                         else:
    70                                 print "Unexpected '%s'" % record[i]
    71                                 return False
    72                
    73                 i += 1
    74        
    75         if (not nil):
    76                 arg.append(current)
    77        
    78         return arg
    7946
    8047def stanse(root, job):
     
    9764        output = []
    9865        for record in records:
    99                 arg = parse_arg(record)
     66                arg = jobfile.parse_arg(record)
    10067                if (not arg):
    10168                        return False
Note: See TracChangeset for help on using the changeset viewer.