Commit b150fb26 authored by Luke Mewburn's avatar Luke Mewburn
Browse files

asn_process: fail gracefully if git isn't found

Don't run the compat_commit checks if git isn't available.
parent 7b440d50
Loading
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -371,6 +371,11 @@ def main():
    if processResults(compatResults, "Compatibility checking files") > 0:
        retval = 1

    git_path = shutil.which("git")
    if git_path is None:
        # TODO: add git to the asn1test container
        logging.warning("git not found, skipping backwards compat checking")
    else:
        logging.info("Checking ASN.1 backwards compatibility between commits")
        commitResults = compatCheckCommits(asnFiles)
        if processResults(commitResults, "Compatibility checking commits") > 0: