qemu-server/test
Fiona Ebner 68eabc42c1 parse config: warn about duplicate sections
Currently, a duplicate section will quietly override the previous
instance of the section with the same identifier. Keep the current
behavior of preferring later entries, but issue a warning or die when
parsing strictly.

The entry for 'pending' in the result needs to start out as undefined
for the check to also work in presence of empty sections. Avoid
changing the returned value itself, by making sure to initialize the
entry before returning.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Link: https://lore.proxmox.com/20250127112923.31703-12-f.ebner@proxmox.com
2025-04-07 14:13:01 +02:00
..
cfg2cmd cfg2cmd: print drive commandline: improve format detection 2024-12-09 09:07:08 +01:00
MigrationTest move helper to check running QEMU version out of the 'Machine' module 2024-07-30 21:19:51 +02:00
parse-config-expected parse config: warn about duplicate sections 2025-04-07 14:13:01 +02:00
parse-config-input test: parse config: test config with duplicate sections 2025-04-07 14:13:01 +02:00
restore-config-expected test: add tests for restoring config 2021-04-18 18:10:28 +02:00
restore-config-input test: add tests for restoring config 2021-04-18 18:10:28 +02:00
snapshot-expected tests: use valid machine types for snapshot tests 2023-08-17 13:37:57 +02:00
snapshot-input tests: use valid machine types for snapshot tests 2023-08-17 13:37:57 +02:00
Makefile test: add parse config tests 2025-04-07 14:13:01 +02:00
run_config2command_tests.pl move kvm_user_version() function to helpers module 2025-01-17 19:24:02 +01:00
run_parse_config_tests.pl test: parse config: test config with duplicate sections 2025-04-07 14:13:01 +02:00
run_pci_addr_checks.pl move qemu-configs to own directory 2019-09-24 18:59:35 +02:00
run_qemu_img_convert_tests.pl fix #4249: make image clone or conversion respect bandwidth limit 2023-02-23 17:09:51 +01:00
run_qemu_migrate_tests.pl tests: add migration alias check 2023-06-21 12:48:11 +02:00
run_qemu_restore_config_tests.pl test: avoid duplicate mock module in restore config test 2025-04-07 14:13:01 +02:00
run_snapshot_tests.pl tests: exit with -1 in case of failures 2017-05-17 13:58:18 +02:00
snapshot-test.pm tests: use valid machine types for snapshot tests 2023-08-17 13:37:57 +02:00
test_get_replicatable_volumes.pl grammar fix: s/does not exists/does not exist/g 2019-12-13 12:20:56 +01:00
test.vmdk fix #2395: refactor qemu_img_convert to accept files as source 2019-10-17 13:57:21 +02:00