summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-04-19 18:44:40 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-04-19 18:44:40 +0000
commit31e615547a94694abf18572e13e935937ac58073 (patch)
treec01ae5d60541e238a5740c12b59ddafaf186d4d0 /src/sbin
parentb7d449933ccf4bb00342f33aa00aba87de442eac (diff)
downloadbcfg2-31e615547a94694abf18572e13e935937ac58073.tar.gz
bcfg2-31e615547a94694abf18572e13e935937ac58073.tar.bz2
bcfg2-31e615547a94694abf18572e13e935937ac58073.zip
Fix failure mode if failure count == 256
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1844 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rw-r--r--src/sbin/bcfg2-repo-validate8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sbin/bcfg2-repo-validate b/src/sbin/bcfg2-repo-validate
index 6361ec0c2..2ec7a20b4 100644
--- a/src/sbin/bcfg2-repo-validate
+++ b/src/sbin/bcfg2-repo-validate
@@ -41,7 +41,7 @@ if __name__ == '__main__':
schema = lxml.etree.XMLSchema(lxml.etree.parse(open(schemaname%(schemadir))))
except:
print "Failed to process schema %s" % (schemaname%(schemadir))
- failures += 1
+ failures = 1
continue
for filename in glob.glob(spec%(repo)):
try:
@@ -49,11 +49,11 @@ if __name__ == '__main__':
except SyntaxError:
print "%s ***FAILS*** to parse \t\t<----" % (filename)
os.system("xmllint %s" % filename)
- failures += 1
+ failures = 1
continue
except IOError:
print "Failed to open file %s \t\t<---" % (filename)
- failures += 1
+ failures = 1
continue
if schema.validate(datafile):
if verbose:
@@ -61,5 +61,5 @@ if __name__ == '__main__':
else:
print "%s ***FAILS*** to verify \t\t<----" % (filename)
os.system("xmllint --schema %s %s" % (schemaname % schemadir, filename))
- failures += 1
+ failures = 1
raise SystemExit, failures