stratovirt/0008-testscases-vmlife-decrease-test-blk-number.patch
Fei Xu 5118a146a4 StratoVirt: synchronize 20.03 LTS SP2 branch to master
Signed-off-by: Fei Xu <xufei30@huawei.com>
2021-06-16 17:33:15 +08:00

29 lines
1.3 KiB
Diff

From 922431085a748e5420190782d138df5482095904 Mon Sep 17 00:00:00 2001
From: Zhu huankai <zhuhuankai1@huawei.com>
Date: Wed, 12 May 2021 16:05:20 +0800
Subject: [PATCH] testscases/vmlife: decrease test blk number
stratovirt supports only 4 block devices at present.
Signed-off-by: Zhu huankai <zhuhuankai1@huawei.com>
---
.../testcases/microvm/functional/test_microvm_vmlife.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/hydropper/testcases/microvm/functional/test_microvm_vmlife.py b/tests/hydropper/testcases/microvm/functional/test_microvm_vmlife.py
index 6e015a3..ff9bc00 100644
--- a/tests/hydropper/testcases/microvm/functional/test_microvm_vmlife.py
+++ b/tests/hydropper/testcases/microvm/functional/test_microvm_vmlife.py
@@ -30,7 +30,7 @@ def test_microvm_start(microvm, vcpu_count, memsize, vnetnums):
logging.debug("current vmhwinfo is %s", vmhwinfo)
assert vmhwinfo["cpu"]["vcpu_count"] == vcpu_count
assert vmhwinfo["mem"]["memsize"] > (memsize * 1024 * 90 / 100)
- assert len(vmhwinfo["virtio"]["virtio_blk"]) == 6
+ assert len(vmhwinfo["virtio"]["virtio_blk"]) == 4
assert len(vmhwinfo["virtio"]["virtio_net"]) == 2
assert len(vmhwinfo["virtio"]["virtio_console"]) == 1
test_vm.shutdown()
--
2.25.1