Commit 53f05586 authored by Daniel Armbruster's avatar Daniel Armbruster Committed by thomas.forbriger
Browse files

checking script now tested

This is a legacy commit from before 2015-05-18.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 4341
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent aec1d4b8
......@@ -86,8 +86,8 @@ def help():
-------------------------------------------------------------------------------
-v|--verbose Be verbose.
-h|--help Display this help.
-e REGEX While checking a checksumfile exclude files matching
REGEX(s).
-e REGEX While checking a checksumfile exclude files if their pathes
are matching REGEX(s).
-R|--notrecursive Do not search in subdirectories of PATH.
-d|--debug Debug mode. Be really verbose.
-f|--followlinks Follow symbolic links. Only available if option -R is not
......@@ -182,9 +182,8 @@ def main(argv=None):
if notRecursive:
logger.debug("Fetching subdirectories for regexes in %s", inputpath)
subdirs = csfile.getSubDirectories(inputpath, regexes, followLinks)
subdirs = [subdir.strip(inputpath)+"*" for subdir in subdirs]
subdirs = [subdir+"*" for subdir in subdirs]
regexes.extend(subdirs)
print(regexes)
checksumfile = csfile.CsFile(inputpath, sourcepath)
checksumfile.read()
......
......@@ -357,10 +357,10 @@ class CsLine:
except IOError:
if beTolerant:
self.statusLastCheck = 'warning'
self.logger.warning("While checking file '%s' does not exist", src)
self.logger.warning("While checking file '%s' does not exist.", src)
else:
self.statusLastCheck = 'error'
self.logger.error("While checking file '%s' does not exist", src)
self.logger.error("While checking file '%s' does not exist.", src)
else:
# calculate checksum
data = file.read(blockSize)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment