Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include appleseed.cli version string in test suite's HTML report #2845

Open
dictoon opened this issue Apr 14, 2020 · 0 comments
Open

Include appleseed.cli version string in test suite's HTML report #2845

dictoon opened this issue Apr 14, 2020 · 0 comments

Comments

@dictoon
Copy link
Member

dictoon commented Apr 14, 2020

Basically include the output of appleseed.cli --version in the HTML report.

scripts/rendernode.py already does that:

# -------------------------------------------------------------------------------------------------
# Launches appleseed.cli and print appleseed version information.
# -------------------------------------------------------------------------------------------------

def print_appleseed_version(args, log):
    try:
        p = subprocess.Popen([args.tool_path, "--version", "--system"], stdout=subprocess.PIPE,
                             stderr=subprocess.PIPE)
        output = p.communicate()[1].split(os.linesep, 1)

        if p.returncode != 0:
            log.error("failed to query {0} version (return code: {1}).".format(args.tool_path, p.returncode))
            sys.exit(1)

        for line in output:
            log.info("{0}".format(line))

    except OSError:
        log.error("failed to query {0} version.".format(args.tool_path))
        sys.exit(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant