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

libvirt-mem: Enable check for test_qemu_cmd #5911

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

Conversation

misanjumn
Copy link
Contributor

libvirt-mem: Enable check for test_qemu_cmd

The following testcases are failing because because of the check for test_qemu_cmd is not added in the script

  1. type_specific.io-github-autotest-libvirt.libvirt_mem. positive_test.align_256m.cold_plug:
    FAIL: Qemu command check fail. (205.37 s)
  2. type_specific.io-github-autotest-libvirt.libvirt_mem. positive_test.align_256m.hot_plug:
    FAIL: Qemu command check fail. (209.51 s)

In the libvirt_mem.cfg, the following parameter is set to no - "test_qemu_cmd = no"
Hence, the check must be added in all places

Signed-off-by: Misbah Anjum N [email protected]

The following testcases are failing because because of
the check for test_qemu_cmd is not added in the script
1. type_specific.io-github-autotest-libvirt.libvirt_mem.
positive_test.align_256m.cold_plug:
FAIL: Qemu command check fail. (205.37 s)
2. type_specific.io-github-autotest-libvirt.libvirt_mem.
positive_test.align_256m.hot_plug:
FAIL: Qemu command check fail. (209.51 s)

In the libvirt_mem.cfg, the following parameter is set to
no - "test_qemu_cmd = no"
Hence, the check must be added in all places

Signed-off-by: Misbah Anjum N <[email protected]>
@misanjumn
Copy link
Contributor Author

After Patch

 (1/2) type_specific.io-github-autotest-libvirt.libvirt_mem.positive_test.align_256m.cold_plug: STARTED
 (1/2) type_specific.io-github-autotest-libvirt.libvirt_mem.positive_test.align_256m.cold_plug:  PASS (27.20 s)
 (2/2) type_specific.io-github-autotest-libvirt.libvirt_mem.positive_test.align_256m.hot_plug: STARTED
 (2/2) type_specific.io-github-autotest-libvirt.libvirt_mem.positive_test.align_256m.hot_plug:  PASS (29.48 s)
RESULTS    : PASS 2 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

@@ -515,7 +515,8 @@ def modify_domain_xml():
elif discard:
vm.start()
session = vm.wait_for_login()
check_qemu_cmd(max_mem_rt, tg_size)
if test_qemu_cmd:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems logical. LGTM.

Additionally have you tested the behaviour with test_qemu_cmd = yes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sacsant

I have tested the behaviour with the "test_qemu_cmd = yes"
The test case fails with "QEMU command check failed" due to the changes with the qemu cmd.
Here is a patch where "test_qemu_cmd" is set to "no" for multiple test cases due to the same reason: https://github.com/autotest/tp-libvirt/pull/3508/files

Looking into it in order to update the test script libvirt_mem.py to match the string search with the updated qemu cmd.

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.

2 participants