ACSErrorChecker.ErrorChecker
index
/alma/ACS-2016.6/ACSSW/lib/python/site-packages/ACSErrorChecker/ErrorChecker.py

################################################################################################
# @(#) $Id: ErrorChecker.py,v 1.13 2011/10/28 14:39:18 hsommer Exp $
#
#    ALMA - Atacama Large Millimiter Array
#    (c) Associated Universities, Inc. Washington DC, USA, 2001
#    (c) European Southern Observatory, 2002
#    Copyright by ESO (in the framework of the ALMA collaboration)
#    and Cosylab 2002, All rights reserved
#
#    This library is free software; you can redistribute it and/or
#    modify it under the terms of the GNU Lesser General Public
#    License as published by the Free Software Foundation; either
#    version 2.1 of the License, or (at your option) any later version.
#
#    This library is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#    Lesser General Public License for more details.
#
#    You should have received a copy of the GNU Lesser General Public
#    License along with this library; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
###############################################################################

 
Modules
       
fpformat
glob
os
re
string
sys
time
_xmlplus

 
Functions
       
check()
Read the configuration file to scan the subsystem and create the reports
into the given directory with the given format
It checks for the configuration file and call the checkWithConfigFile function
 
Return values
    0: ok
    -1: error in the config file
    n: number of errors ecountered while scanning the subsystems
checkWithConfigFile(configFile)
Read the configuration file from the parameter and create the reports
into the given directory with the given format
 
Return values
    0: ok
    -1: error in the config file
    n: number of errors ecountered while scanning the subsystems
parseConfigFile(fileName, repDir, incDirs, excDirs, testRng, systems)
Parse the command file filling the variables
return 0 if the parsing was ok
 
fileName: the config file to scan
repDir: the directory to write the reports on
incDirs: the include directories
excDirs: the folders to exclude form search
testRng: the range of test and example errors
systems: the subsystems
printUsage()
Print the usage string in the stdout
writeErrorOnHTML(fileName, subsystemName, errorMsg, theException)

 
Data
        theCodes = None
theErrors = None
theName = None
theNumber = None
theTag = None