diff options
author | Juan Quintela <quintela@redhat.com> | 2023-06-09 00:49:04 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-09-29 17:05:23 +0200 |
commit | 0368ace8f9eb24c5959466db352e4c4afc734954 (patch) | |
tree | 710408cb3574ea668dc1c23c879ff1bb2a21bbe8 | |
parent | 22d3c6e16c69ea581eef6f7ff8ebb2e63107d3f5 (diff) | |
download | qemu-0368ace8f9eb24c5959466db352e4c4afc734954.zip qemu-0368ace8f9eb24c5959466db352e4c4afc734954.tar.gz qemu-0368ace8f9eb24c5959466db352e4c4afc734954.tar.bz2 |
migration-test: simplify shmem_opts handling
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-ID: <20230608224943.3877-4-quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
-rw-r--r-- | tests/qtest/migration-test.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index 334648a..46f1c27 100644 --- a/tests/qtest/migration-test.c +++ b/tests/qtest/migration-test.c @@ -806,9 +806,6 @@ static int test_migrate_start(QTestState **from, QTestState **to, "-object memory-backend-file,id=mem0,size=%s" ",mem-path=%s,share=on -numa node,memdev=mem0", memory_size, shmem_path); - } else { - shmem_path = NULL; - shmem_opts = g_strdup(""); } if (args->use_dirty_ring) { @@ -824,7 +821,7 @@ static int test_migrate_start(QTestState **from, QTestState **to, memory_size, tmpfs, arch_opts ? arch_opts : "", arch_source ? arch_source : "", - shmem_opts, + shmem_opts ? shmem_opts : "", args->opts_source ? args->opts_source : "", ignore_stderr); if (!args->only_target) { @@ -844,7 +841,7 @@ static int test_migrate_start(QTestState **from, QTestState **to, memory_size, tmpfs, uri, arch_opts ? arch_opts : "", arch_target ? arch_target : "", - shmem_opts, + shmem_opts ? shmem_opts : "", args->opts_target ? args->opts_target : "", ignore_stderr); *to = qtest_init(cmd_target); |