-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add support for environment variable #2626
Conversation
This patch wont work as env not defined in parameters. Also if it is missing, it is breaking template. |
@nuclearcat we already got the parameter support merged in the Linaro's test-definition here Linaro/test-definitions#511 Why will this not work? |
2 problems:
|
FWIW I had this as part of #2577 . Haven't had time to re-test get it merged yet. I'd be fine with adding staging-skip to my PR and letting you merge the ENV functionality through this PR first. Also Denys' comment about the case when ENV is undefined is also not handled in my PR, so that'd need fixing. |
Hello @crazoes |
@nuclearcat @JenySadadia I already created a PR for adding Does that look good? I'll change it to point to generic.jinja2 instead of kselftest.jinja2 |
Yes, after renaming the template, it should work. |
@a-wai does this patch look good to you? |
@@ -27,3 +27,4 @@ | |||
BOARD: {{ device_type }} | |||
BRANCH: {{ tree }} | |||
SKIP_INSTALL: True | |||
ENV: '{{ env }}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would drop this change, as this template is only used for the legacy system and therefore not relevant for your use-case. Otherwise LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I updated the commit
This change will allow us to run some kselftests which requires to pass parameters Signed-off-by: Shreeya Patel <[email protected]>
LGTM, but it seems something is still wrong: weird output in LAVA |
@a-wai this usually happens when the kernel has not been updated. If the kernel doesn't have the patch to add support for new parameters then test will not work as expected. |
We are almost always using tip of tree images (latest). |
This job was running on 6.11-rc4, so not exactly an old kernel... Are additional patches required? |
@a-wai yes we need additional patch in the kernel in order to run the suspend and hibernation test with RTC. Btw, do you know which branch do we use from the above? Because I don't see my patch added to the staging mainline branch. |
Ah, then you need to add rules to this job so it only runs on the staging-mainline branch; the LAVA job I linked to ran on Linus' tree, so without your patches. |
If everything looks good then can we merged this now @nuclearcat @a-wai ? |
@crazoes just for clarity, I didn't add the patch to staging-mainline but to the collabora-next tree. Fwiw you can run the test on the next tree now since the patch already landed there. |
If this is ready can it be merged? I'm waiting on it to resume working on #2577. Thanks. |
I verified one of latest jobs, https://staging.kernelci.org:9000/viewer?node_id=66e2bc615785c698a0038303, can spot
So ENV variable seems present and properly formatted, even it is empty. |
This change will allow us to run some kselftests which requires to pass parameters