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

Plan environment file is not being sourced after prepare and execute in tmt-try #3315

Open
xduda opened this issue Oct 24, 2024 · 0 comments · May be fixed by #3316
Open

Plan environment file is not being sourced after prepare and execute in tmt-try #3315

xduda opened this issue Oct 24, 2024 · 0 comments · May be fixed by #3316

Comments

@xduda
Copy link

xduda commented Oct 24, 2024

The documentation states file located at TMT_PLAN_ENVIRONMENT_FILE should be sourced after steps prepare and execute.
When running from tmt try, this doesn't happen.

Steps to reproduce:

/plan:

provision:
    how: local
discover:
    how: fmf
prepare:
    how: shell
    script: echo "VAR=hello" >> $TMT_PLAN_ENVIRONMENT_FILE
execute:
    how: tmt

/test:

framework: shell
test: test "${VAR}" = "hello"

the plan succeeds when running tmt run plans -n plan,
but fails when running as tmt try -p plan

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 a pull request may close this issue.

1 participant