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

[RFC] Handle pre/post plugins per cfg #213

Open
narasimhan-v opened this issue May 19, 2020 · 2 comments
Open

[RFC] Handle pre/post plugins per cfg #213

narasimhan-v opened this issue May 19, 2020 · 2 comments

Comments

@narasimhan-v
Copy link
Collaborator

How about handling pre/post plugin scripts (right not they are only for pip installation) mapped with cfg files ?

We can maintain a list of scripts in a directory, and use them only if needed when a cfg needs it.
We need to additionally maintain a mapping of cfg to scripts, and avocado-setup.py needs to handle it.

Example:

[io_nvme]
pre = <pre_script_path/name within wrapper>
post = <post_script_path/name within wrapper>

Additionally, in future we may have profiler commands, files also added.

@PraveenPenguin
Copy link
Collaborator

@narasimhan-v yes I agree with the proposal as the wrapper is tightly coupled with misc test and avocado so at least what our Test require (in this pip package) we need part of wrapper for maintenance point it will be good that we can make sure our test should not fail, and avoid to run every time those test cases handling in cfg will really help

@PraveenPenguin
Copy link
Collaborator

or other way that we can enable this option when needed can be used as a flag like
#208 but that is not cfg based it is for the entire run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants