diff options
author | Peter Xu <peterx@redhat.com> | 2024-12-16 11:14:13 -0500 |
---|---|---|
committer | Fabiano Rosas <farosas@suse.de> | 2025-01-02 16:00:51 -0300 |
commit | bc3ace691492a5aefa6e9ad1006879a30502d842 (patch) | |
tree | e7020fed776baf3cbf6f728bd3e7d02553833f76 /tests | |
parent | 9a9320a543704087e3f27f243de6f58af948ce56 (diff) | |
download | qemu-bc3ace691492a5aefa6e9ad1006879a30502d842.zip qemu-bc3ace691492a5aefa6e9ad1006879a30502d842.tar.gz qemu-bc3ace691492a5aefa6e9ad1006879a30502d842.tar.bz2 |
tests/migration: Drop arch_[source|target]
Coverity complained about them. These two variables are never used now
after commit 832c732c5d ("migration-test: Create arch_opts"), and/or commit
34cc54fb35 ("tests/qtest/migration-test: Use custom asm bios for ppc64").
Resolves: Coverity CID 1568379
Resolves: Coverity CID 1568380
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20241216161413.1644171-4-peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qtest/migration/framework.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/qtest/migration/framework.c b/tests/qtest/migration/framework.c index a902936..47ce078 100644 --- a/tests/qtest/migration/framework.c +++ b/tests/qtest/migration/framework.c @@ -197,8 +197,6 @@ static void cleanup(const char *filename) int migrate_start(QTestState **from, QTestState **to, const char *uri, MigrateStart *args) { - g_autofree gchar *arch_source = NULL; - g_autofree gchar *arch_target = NULL; /* options for source and target */ g_autofree gchar *arch_opts = NULL; g_autofree gchar *cmd_source = NULL; @@ -307,12 +305,11 @@ int migrate_start(QTestState **from, QTestState **to, const char *uri, "-name source,debug-threads=on " "-m %s " "-serial file:%s/src_serial " - "%s %s %s %s %s", + "%s %s %s %s", kvm_opts ? kvm_opts : "", machine, machine_opts, memory_size, tmpfs, arch_opts ? arch_opts : "", - arch_source ? arch_source : "", shmem_opts ? shmem_opts : "", args->opts_source ? args->opts_source : "", ignore_stderr); @@ -329,12 +326,11 @@ int migrate_start(QTestState **from, QTestState **to, const char *uri, "-m %s " "-serial file:%s/dest_serial " "-incoming %s " - "%s %s %s %s %s", + "%s %s %s %s", kvm_opts ? kvm_opts : "", machine, machine_opts, memory_size, tmpfs, uri, arch_opts ? arch_opts : "", - arch_target ? arch_target : "", shmem_opts ? shmem_opts : "", args->opts_target ? args->opts_target : "", ignore_stderr); |