-
Notifications
You must be signed in to change notification settings - Fork 56
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
test: fix the testcase strings to not include osinfo_template
#680
base: main
Are you sure you want to change the base?
Conversation
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.
Why just not moving all the osinfo information to the osinfo_for
function?
Thank you, that is an excellent suggestion, I updated the code based on your suggestion (will probably have to force push again and if you don't mind squash) because I think the linter will not be happy. |
f619a1a
to
f8d8a1b
Compare
@mvo5 why do you removed my suggestion? wasn't it working? |
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.
Awesome, thanks!
Merge conflict :( |
cb29968
to
88396f7
Compare
This commit fixes the testcase string representation to not include the `osinfo_template` string and adds a test case to not accidentally regress here. Currently our test case strings look like: ``` <Dir bootc-image-builder> <Dir test> <Module test_build.py> <Function test_container_builds> <Function test_image_is_generated[quay.io/centos-bootc/centos-bootc:stream9,qcow2+raw+vmdk+vhd+gce,CentOS Stream 9 ({arch})]> <Function test_image_boots[quay.io/centos-bootc/centos-bootc:stream9,raw,CentOS Stream 9 ({arch})]> ... ``` which is an accident. A testcase should ideally only contain what Instead of putting the osinfo_template into the testcase itself, have a function that generates it. It has downsides (now the osinfo_template is more disconnected from the testcase) so we could move it also back into testcase or we could exclude osinfo_template from the string generation. Ideas welcome here, my current approach feels okay but not like it's perfect yet.
88396f7
to
5ded3cb
Compare
This commit fixes the testcase string representation to not include the
osinfo_template
string and adds a test case to not accidentally regress here. Currently our test case strings look like:which is an accident (not the {arch} part in the output above). A testcase should ideally only contain what
Instead of putting the osinfo_template into the testcase itself, have a function that generates it. It has downsides (now the osinfo_template is more disconnected from the testcase) so we could move it also back into testcase or we could exclude osinfo_template from the string generation. Ideas welcome here, my current approach feels okay but not like it's perfect yet.