]> git.proxmox.com Git - qemu-server.git/commit - test/snapshot-test.pm
tests: use valid machine types for snapshot tests
authorMarkus Frank <m.frank@proxmox.com>
Wed, 18 Jan 2023 13:57:56 +0000 (14:57 +0100)
committerFiona Ebner <f.ebner@proxmox.com>
Thu, 17 Aug 2023 11:37:57 +0000 (13:37 +0200)
commitd6989068fa342cd97e79672e187466df76f769a9
treef2efd9d81ee7c93faec9cfff2c37061f6389ed52
parenta55d0f71b2bc5484611312167384539a387e9c69
tests: use valid machine types for snapshot tests

In preparation to turn the 'machine' parameter into a property string.

parse_property_string checks for the regex, therefore the test-cases
with 'somemachine' and 'someothermachine' would fail.

To avoid that, replace 'somemachine' and 'someothermachine' with 'q35'
and 'pc' with sed:

sed -i 's/somemachine/q35/g'
sed -i 's/someothermachine/pc/g'

Signed-off-by: Markus Frank <m.frank@proxmox.com>
[FE: improve wording in commit message]
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
47 files changed:
test/snapshot-expected/commit/qemu-server/101.conf
test/snapshot-expected/commit/qemu-server/102.conf
test/snapshot-expected/commit/qemu-server/201.conf
test/snapshot-expected/commit/qemu-server/202.conf
test/snapshot-expected/commit/qemu-server/203.conf
test/snapshot-expected/create/qemu-server/102.conf
test/snapshot-expected/create/qemu-server/104.conf
test/snapshot-expected/create/qemu-server/106.conf
test/snapshot-expected/create/qemu-server/301.conf
test/snapshot-expected/create/qemu-server/302.conf
test/snapshot-expected/delete/qemu-server/203.conf
test/snapshot-expected/delete/qemu-server/204.conf
test/snapshot-expected/prepare/qemu-server/102.conf
test/snapshot-expected/prepare/qemu-server/104.conf
test/snapshot-expected/rollback/qemu-server/101.conf
test/snapshot-expected/rollback/qemu-server/106.conf
test/snapshot-expected/rollback/qemu-server/201.conf
test/snapshot-expected/rollback/qemu-server/202.conf
test/snapshot-expected/rollback/qemu-server/203.conf
test/snapshot-expected/rollback/qemu-server/204.conf
test/snapshot-expected/rollback/qemu-server/205.conf
test/snapshot-expected/rollback/qemu-server/301.conf
test/snapshot-expected/rollback/qemu-server/302.conf
test/snapshot-expected/rollback/qemu-server/303.conf
test/snapshot-input/commit/qemu-server/101.conf
test/snapshot-input/commit/qemu-server/102.conf
test/snapshot-input/commit/qemu-server/201.conf
test/snapshot-input/commit/qemu-server/202.conf
test/snapshot-input/commit/qemu-server/203.conf
test/snapshot-input/create/qemu-server/104.conf
test/snapshot-input/delete/qemu-server/101.conf
test/snapshot-input/delete/qemu-server/203.conf
test/snapshot-input/delete/qemu-server/204.conf
test/snapshot-input/rollback/qemu-server/101.conf
test/snapshot-input/rollback/qemu-server/102.conf
test/snapshot-input/rollback/qemu-server/103.conf
test/snapshot-input/rollback/qemu-server/104.conf
test/snapshot-input/rollback/qemu-server/106.conf
test/snapshot-input/rollback/qemu-server/201.conf
test/snapshot-input/rollback/qemu-server/202.conf
test/snapshot-input/rollback/qemu-server/203.conf
test/snapshot-input/rollback/qemu-server/204.conf
test/snapshot-input/rollback/qemu-server/205.conf
test/snapshot-input/rollback/qemu-server/301.conf
test/snapshot-input/rollback/qemu-server/302.conf
test/snapshot-input/rollback/qemu-server/303.conf
test/snapshot-test.pm