-
Notifications
You must be signed in to change notification settings - Fork 263
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
post_run for Test / TestBench #574
Comments
The junit xml file contains all stdout from the passing and failing tests. Have you considered parsing this file? |
You're right, and that's what we're using to get the stdout. |
I have a similar concern because of #478. I'm currently using https://github.com/dbhi/vunit/blob/vunitcosim/examples/vhdl/external_buffer/run.py#L38-L39 https://github.com/dbhi/vunit/blob/vunitcosim/examples/vhdl/external_buffer/run.py#L121-L127 I think that it would be interesting to enhance In the context of co-simulation of Python and GHDL through 'external arrays', it is required to 'save' the CLI args that VUnit would pass to GHDL at runtime. However, I think that changing from |
Yeah, @umarcor's suggestion would work for me as well. Any way to get to |
I am not against post_run it makes sense. Alternatively I have had thoughts about making a class based hook interface where you would implement methods on the class and send an object encapsulating everything instead of many individual functions. It would not spam the public api with so many functions when adding hooks and the object can be used to share state between for example pre_config and post_check. |
main already has a post_run callback so should should not need to have try except arround main. It also ensures that - -list and - - compile wont run post_run since no tests have run. |
The |
Adding more public info to the result object passed to post run is reasonable. |
Are there any arguments against adding a
post_run
callback to Test / TestBench?Similar to
post_check
, but called regardless of whether test passed or failed.My use case: Processing log files written to output_path, even for failing tests. For example, archiving log files from automated simulation runs.
I know I could do this without a callback by parsing the mapping text file to get to the output directories, but the callback would be a much easier solution.
Or is there another easier way that I'm not seeing?
And I believe there could be other use cases where this callback would be beneficial.
If there is general consensus that this suggestion is useful, I could work on implementing it.
The text was updated successfully, but these errors were encountered: