]> git.proxmox.com Git - qemu-server.git/commitdiff
tests: fix invoking migration tests with make
authorFiona Ebner <f.ebner@proxmox.com>
Mon, 22 May 2023 12:37:08 +0000 (14:37 +0200)
committerFiona Ebner <f.ebner@proxmox.com>
Mon, 22 May 2023 13:51:58 +0000 (15:51 +0200)
Even if between single quotes, the dollar sign needs to be escaped
here. Otherwise, there will be an error
> Search pattern not terminated at -e line 1.
and no migration tests would be run. The error did not lead to
aborting though, making it harder to notice.

Fixes: aac89f6c ("tests: avoid calling test script to get target names")
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
test/Makefile

index 97340edfe3ea106ae01873608183770a8f6b0f58..9e6d39e81e8aa5a5ba88ce8d6b1b5991cbdd96c9 100644 (file)
@@ -18,7 +18,7 @@ test_qemu_img_convert: run_qemu_img_convert_tests.pl
 test_pci_addr_conflicts: run_pci_addr_checks.pl
        ./run_pci_addr_checks.pl
 
-MIGRATION_TEST_TARGETS := $(addprefix test_migration_,$(shell perl -ne 'print "$1 " if /^\s*name\s*=>\s*["'\'']([^\s"'\'']+)["'\'']\s*,\s*$/; END { print "\n" }' run_qemu_migrate_tests.pl))
+MIGRATION_TEST_TARGETS := $(addprefix test_migration_,$(shell perl -ne 'print "$$1 " if /^\s*name\s*=>\s*["'\'']([^\s"'\'']+)["'\'']\s*,\s*$$/; END { print "\n" }' run_qemu_migrate_tests.pl))
 
 test_migration: run_qemu_migrate_tests.pl MigrationTest/*.pm $(MIGRATION_TEST_TARGETS)