Commit 4f429611 authored by canterburym's avatar canterburym
Browse files

Updating tests to include validation of instance documents

parents 0c89bb7f f3f09f7c
Pipeline #9418 passed with stage
in 27 seconds
......@@ -120,11 +120,19 @@ if __name__ == '__main__':
logging.info(f">Including instance doc {g}")
includeInstanceDocList.append(g)
else:
<<<<<<< HEAD
logging.info(f">Including {p.absolute()}")
if str(p.absolute()).endswith('.xml'):
includeInstanceDocList.append(str(p.absolute()))
elif str(p.absolute()).endswith('.xsd'):
includeFileList.append(str(p.absolute()))
=======
logging.info(f"Including {p.absolute()}")
if str(p.absolute()).endswith('.xml'):
includeInstanceDocList.append(p.absolute())
elif str(p.absolute()).endswith('.xml'):
includeFileList.append(p.absolute())
>>>>>>> f3f09f7c3888b660d639f273b2164823ac0460cc
else:
logging.warning(f'Ignoring file {p.absolute()}')
......@@ -186,4 +194,3 @@ if __name__ == '__main__':
print (f"{errorCount} instance doc errors detected")
exit(errorCount)
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