From 249dab8012c32b0ddf88d8f6b425bd358d289ac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Tue, 27 Mar 2018 13:54:25 +0200 Subject: [PATCH] qemu.migrate: Quote the paths in gzip command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The path in gzip command might contain spaces or "weird" characters. Migrate command already uses double-quotes so let's use the single quotes to avoid the need to escape characters in the src/dst path. Tested with: exec:gzip -c > '/var/tmp/avocado_u8sHJg/avocado_job_OHWFL5/1-\ functional_rpm_dvd type_specific.io-github-autotest-qemu.migrate\ .with_reboot.exec.gzip_exec;-e630/migrateE8PDpZ/migrate_file' Signed-off-by: Lukáš Doktor --- qemu/tests/cfg/migrate.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu/tests/cfg/migrate.cfg b/qemu/tests/cfg/migrate.cfg index 6fa166d1..7629fdd4 100644 --- a/qemu/tests/cfg/migrate.cfg +++ b/qemu/tests/cfg/migrate.cfg @@ -27,8 +27,8 @@ variants: - @default_exec: - gzip_exec: - migration_exec_cmd_src = "gzip -c > %s" - migration_exec_cmd_dst = "gzip -c -d %s" + migration_exec_cmd_src = "gzip -c > '%s'" + migration_exec_cmd_dst = "gzip -c -d '%s'" - fd: migration_protocol = "fd" - mig_cancel: -- GitLab