HomeClusterLabs Projects

Refactor: cts: Move validation code into a new python module.

Description

Refactor: cts: Move validation code into a new python module.

This is also going to be useful for running command line tool regression
tests, so split the code out into a separate function and make it more
generic.

  • Raise FileNotFoundError if the validator is not found so we can tell that error apart from validation errors.
  • Add the xmllint return code to XmlValidationError so we can access it later if needed.
  • Return the xmllint output instead of printing it so the caller can decide what to do with it.
  • Use configure.ac to find the path to xmllint.

Details

Provenance
clumensAuthored on Jul 9 2024, 1:22 PM
Parents
rPf9a3bf1d134a: Refactor: CTS: Allow various other ways of giving stdin to a Test.
Branches
Unknown
Tags
Unknown