-
Notifications
You must be signed in to change notification settings - Fork 174
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
Avoid calling env_process._get_qemu_version from test cases #4250
base: master
Are you sure you want to change the base?
Conversation
@YongxueHong could you have a look? Based on #3954 I'd also appreciate your input @hellohellenmao @maxujun @BohdanMar @fbq815 on @nanliu-r I would also appreciate if you could have a look onto If you all would rather split this into 2 separate PRs, tell me. |
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.
Hi @bgartzi
Thank you for resolving that so quickly!
LGTM.
Running qemu version was extracted by calling virttest.env_process._get_qemu_version. However, that function was removed from avocado-vt in fe5614d78ce74395544d6c2834573e0e6f25eb5e. It was done assuming it wasn't used outside virttest.env_process, as it was considered to be private (due to the `_` prefix). However, virttest.utils_qemu provides the public get_qemu_version function which gives a quite similar result. This patch, replaces virttest.env_process._get_qemu_version by virttest.utils_qemu.get_qemu_version in the thin_write_in_qemu_img_commit test case. Signed-off-by: Beñat Gartzia <[email protected]>
Running qemu version was extracted by calling virttest.env_process._get_qemu_version. However, that function was removed from avocado-vt in fe5614d78ce74395544d6c2834573e0e6f25eb5e. It was done assuming it wasn't used outside virttest.env_process, as it was considered to be private (due to the `_` prefix). However, virttest.utils_qemu provides the public get_qemu_version which gives a quite similar result. This patch, replaces virttest.env_process._get_qemu_version by virttest.utils_qemu.get_qemu_version in the cpu_info_check test case. Signed-off-by: Beñat Gartzia <[email protected]>
25b65a3
to
e7c8687
Compare
Sorry for the noise @YongxueHong I forgot to select the right part of the tuple in Thanks also for having a look that quickly. |
@bgartzi Hi, looks good to me, sorry for the later reply. |
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.
LGTM. Thanks!
_get_qemu_version
was removed fromvirttest.env_process
in avocado-framework/avocado-vt@fe5614dThere were a bunch of test cases that were using the private function, and so affected by this removal, such as the one being fixed in #4249
This path updates the other test cases so they call the public (and still available) function from virttest instead.
ID: 3313