Skip to content

Get run CLI args from Results #579

@umarcor

Description

@umarcor

It would be useful if the CLI args that are used to run each test/config were available programmatically (either in post_run or through --export-json). Something similar to:

ui.set_sim_option("ghdl.elab_e", True)
ui._args.elaborate = True

def post_func(results):
    for key, val in results.args:
        print(key) # entity.arch.config
        print(val) # list of args (argv to GHDL)

vu.main(post_run=post_func)

In https://github.com/VUnit/vunit/pull/568/files#diff-d11203cc5c5e59bf50c8fe619e03e39d, I'm using a modified ghdl_interface to write the args to a txt file, as a workaround.


This would allow to indirectly retrieve the version of the standard, as commented in #577 (comment).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions