40 lines
1.5 KiB
Diff
40 lines
1.5 KiB
Diff
|
|
From f0dbc3b6101e39ce3bc5d38f34723d1c672a12e9 Mon Sep 17 00:00:00 2001
|
||
|
|
From: laokz <laokz@foxmail.com>
|
||
|
|
Date: Mon, 13 Mar 2023 06:20:48 +0000
|
||
|
|
Subject: [PATCH] tests: add (riscv virt) machine mapping to testenv from
|
||
|
|
v7.0.0 commit 3213bbaf5797cc405e57f122e72c1fb55d0b08ab Author: laokz
|
||
|
|
<laokz@foxmail.com> Date: Tue Mar 8 12:33:39 2022 +0800
|
||
|
|
|
||
|
|
tests: add (riscv virt) machine mapping to testenv
|
||
|
|
|
||
|
|
Some qemu-iotests(040 etc) use PCI disk to do test. Without the
|
||
|
|
mapping, RISC-V flavor use spike as default machine which has no
|
||
|
|
PCI bus, causing test failure.
|
||
|
|
|
||
|
|
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/894
|
||
|
|
|
||
|
|
Signed-off-by: Kai Zhang <laokz@foxmail.com>
|
||
|
|
Message-Id: <tencent_E4219E870165A978DB5BBE50BD53D33D2E06@qq.com>
|
||
|
|
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
|
||
|
|
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
|
||
|
|
---
|
||
|
|
tests/qemu-iotests/testenv.py | 2 ++
|
||
|
|
1 file changed, 2 insertions(+)
|
||
|
|
|
||
|
|
diff --git a/tests/qemu-iotests/testenv.py b/tests/qemu-iotests/testenv.py
|
||
|
|
index c33454fa68..26ae6945cc 100644
|
||
|
|
--- a/tests/qemu-iotests/testenv.py
|
||
|
|
+++ b/tests/qemu-iotests/testenv.py
|
||
|
|
@@ -238,6 +238,8 @@ def __init__(self, imgfmt: str, imgproto: str, aiomode: str,
|
||
|
|
('aarch64', 'virt'),
|
||
|
|
('avr', 'mega2560'),
|
||
|
|
('m68k', 'virt'),
|
||
|
|
+ ('riscv32', 'virt'),
|
||
|
|
+ ('riscv64', 'virt'),
|
||
|
|
('rx', 'gdbsim-r5f562n8'),
|
||
|
|
('tricore', 'tricore_testboard')
|
||
|
|
)
|
||
|
|
--
|
||
|
|
2.27.0
|
||
|
|
|