Skip to content

run: Add a --script-dir to run user-defined init-scripts #70

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nfraprado
Copy link

This new parameter can be used as:

  virtme-run --kdir ~/repos/builds/virtme-x86_64 --script-dir test/

And virtme will run any *.sh script in ./test dir in the guest.

Signed-off-by: Ezequiel Garcia <[email protected]>

I'd like to upstream this patch from @ezequielgarcia (ezequielgarcia@c7760c7). I'm aware of --script-sh, but it only allows a single command, and, more importantly, it cannot be used together with --graphics. So, for the use case of automatically running tests on a graphical environment, --script-dir is a must.

Signed-off-by: Nícolas F. R. A. Prado [email protected]

This new parameter can be used as:

  virtme-run --kdir ~/repos/builds/virtme-x86_64 --script-dir test/

And virtme will run any *.sh script in ./test dir in the guest.

Signed-off-by: Ezequiel Garcia <[email protected]>
Signed-off-by: Nícolas F. R. A. Prado <[email protected]>
@fooishbar
Copy link

FWIW we've been using this within Weston and it's been really helpful to us.

@musamaanjum
Copy link

I've just tested it and it works. Thanks.

@marcosps
Copy link
Contributor

@amluto can you please check?

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

Successfully merging this pull request may close these issues.

5 participants