diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-11-21 16:38:20 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-11-21 16:38:20 +0000 |
commit | 2f75d0e2f9ac890bb0150ee97c8ff9af5c915e62 (patch) | |
tree | a794279fcaa8e27ac65cb596edd6cd616031651e /src/sbin/ValidateBcfg2Repo | |
parent | 197361027cf0c72f48444d4f1815a4695e017594 (diff) | |
download | bcfg2-2f75d0e2f9ac890bb0150ee97c8ff9af5c915e62.tar.gz bcfg2-2f75d0e2f9ac890bb0150ee97c8ff9af5c915e62.tar.bz2 bcfg2-2f75d0e2f9ac890bb0150ee97c8ff9af5c915e62.zip |
call out to xmllint until lxml does error processing correctly
(Logical change 1.362)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1510 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/ValidateBcfg2Repo')
-rw-r--r-- | src/sbin/ValidateBcfg2Repo | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sbin/ValidateBcfg2Repo b/src/sbin/ValidateBcfg2Repo index 26a89abea..49b87c5c4 100644 --- a/src/sbin/ValidateBcfg2Repo +++ b/src/sbin/ValidateBcfg2Repo @@ -5,6 +5,7 @@ __revision__ = '0.7.3' from glob import glob from lxml.etree import parse, XMLSchema +from os import system from sys import argv from ConfigParser import ConfigParser, NoSectionError, NoOptionError @@ -37,6 +38,7 @@ if __name__ == '__main__': datafile = parse(open(filename)) except SyntaxError: print "%s ***FAILS*** to parse \t\t<----" % (filename) + system("xmllint %s" % filename) continue except IOError: print "Failed to open file %s \t\t<---" % (filename) @@ -46,3 +48,4 @@ if __name__ == '__main__': print "%s checks out" % (filename) else: print "%s ***FAILS*** to verify \t\t<----" % (filename) + system("xmllint --schema %s %s" % (schema % schemadir, filename)) |