-
Notifications
You must be signed in to change notification settings - Fork 173
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
block_disk_not_default_options: creates new test case #4209
base: master
Are you sure you want to change the base?
block_disk_not_default_options: creates new test case #4209
Conversation
66f362b
to
8442610
Compare
Tests results
|
8442610
to
9817d33
Compare
@qingwangrh could you review this PR? Thanks ! |
remove_image_stg0 = yes | ||
force_create_image_stg0 = yes | ||
dd_cmd = "dd if=/dev/urandom of=test.txt bs=1M count=10" | ||
virtio_blk: |
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.
The file is the non-default option comment test, it will evolve to cover other option test. so I suggest considering current test as one variant: example - with_packed_and_ppv
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.
cfg updated !
image_size_stg0 = 40G | ||
remove_image_stg0 = yes | ||
force_create_image_stg0 = yes | ||
dd_cmd = "dd if=/dev/urandom of=test.txt bs=1M count=10" |
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.
The dd cmd should affect the disk with specified option.
2166cd8
to
c955535
Compare
session.cmd(params.get("dd_cmd")) | ||
|
||
possible_types = {"virtio-blk-device", "virtio-scsi-device"} | ||
verify_non_default_options("packed", possible_types) |
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.
it can comes from cfg instead of hard code
qtree_check={k1:v1}
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.
qtree verification implemented in cfg side, so the user can configure it to verify any option of a desired device
c955535
to
1400868
Compare
dd_cmd = "dd if=/dev/urandom of=test.txt bs=1M count=10" | ||
variants: | ||
- with_packed_and_ppv: | ||
qtree_check = '{"packed" : ["virtio-blk-device", "virtio-scsi-device"], "page-per-vq" : ["virtio-blk-pci", "virtio-scsi-pci"]}' |
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.
- it can be evolved to support different image ,like as
qtree_check_images=" stg0 stg1...."
qtree_check_image_stg0='{"packed" : ["virtio-blk-device", "virtio-scsi-device"], "page-per-vq" : ["virtio-... - where is the value definition ?example, I want to check the key1 value is "ABC"?
if qtree_check: | ||
for key in qtree_check: | ||
verify_non_default_options(key, qtree_check[key]) | ||
else: |
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.
The qtree_check is not mandatory, so I suggest changing it to warn message, otherwise, the case will be looked as failed case.
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.
@qingwangrh yeah I thought about that and changed it yesterday :) I will push the new changes asap
564547b
to
dea631d
Compare
@qingwangrh now the qtree check should be fully implemented, still working on the dd cmd improvement |
|
dea631d
to
cd1213e
Compare
@mcasquer Please don't forget to add -S when pushing the patch. (I.E. commit signature) |
cd1213e
to
5496417
Compare
Sorry for that, it's been a one-time oversight 😅 |
Once the dependent patch #4219 gets merged, CI should be green after rebase |
c6db2da
to
e194141
Compare
After applying the dependent patch:
Win10 guest with virtio_scsi
Win2025 guest with virtio_blk
|
This is a kindly reminder, @qingwangrh please could you review again this PR? Thanks ! |
Added @XueqiangWei |
Creates a new test case that boots up a VM with a disk configured with non-common options such as packed or page-per-vq. Unplug the disk and hotplugs it again. Signed-off-by: Mario Casquero <[email protected]>
e194141
to
bd82563
Compare
With last update on the provider:
|
Depends on #4219
block_disk_not_default_options: creates new test case
Creates a new test case that boots up a VM with a disk
configured with non-common options such as packed or
page-per-vq. Unplug the disk and hotplugs it again.
Signed-off-by: Mario Casquero [email protected]
ID: 3007