From: Jannis Harder Date: Fri, 3 Jun 2022 15:16:01 +0000 (+0200) Subject: Don't fail tests when xmlschema is missing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80eacf34ca575c0c458fef845a046d76d2cd1b33;p=SymbiYosys.git Don't fail tests when xmlschema is missing --- diff --git a/tests/junit/validate_junit.py b/tests/junit/validate_junit.py index c1c0573..1999551 100644 --- a/tests/junit/validate_junit.py +++ b/tests/junit/validate_junit.py @@ -1,4 +1,13 @@ -from xmlschema import XMLSchema, XMLSchemaValidationError +try: + from xmlschema import XMLSchema, XMLSchemaValidationError +except ImportError: + import os + if "NOSKIP" not in os.environ.get("MAKEFLAGS", ""): + print() + print("SKIPPING python library xmlschema not found, skipping JUnit output validation") + print() + exit(0) + import argparse def main():