[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/42] migration-test: dirtylimit checks for x86_64 arch before
From: |
Juan Quintela |
Subject: |
[PATCH 10/42] migration-test: dirtylimit checks for x86_64 arch before |
Date: |
Fri, 9 Jun 2023 00:49:11 +0200 |
So no need to assert we are in x86_64.
Once there, refactor the function to remove useless variables.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
tests/qtest/migration-test.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
index 613fda79bb..743aa873e6 100644
--- a/tests/qtest/migration-test.c
+++ b/tests/qtest/migration-test.c
@@ -2510,10 +2510,7 @@ static int64_t get_limit_rate(QTestState *who)
static QTestState *dirtylimit_start_vm(void)
{
QTestState *vm = NULL;
- g_autofree gchar *cmd = NULL;
- const char *arch = qtest_get_arch();
-
- assert((strcmp(arch, "x86_64") == 0));
+ g_autofree gchar *
cmd = g_strdup_printf("-accel kvm,dirty-ring-size=4096 "
"-name dirtylimit-test,debug-threads=on "
"-m 150M -smp 1 "
--
2.40.1
- [PATCH 05/42] migration-test: Create arch_opts, (continued)
- [PATCH 05/42] migration-test: Create arch_opts, Juan Quintela, 2023/06/08
- [PATCH 06/42] migration-test: machine_opts is really arch specific, Juan Quintela, 2023/06/08
- [PATCH 08/42] migration-test: bootpath is the same for all tests and for all archs, Juan Quintela, 2023/06/08
- [PATCH 07/42] migration-test: Create kvm_opts, Juan Quintela, 2023/06/08
- [PATCH 09/42] migration-test: Add bootfile_create/delete() functions, Juan Quintela, 2023/06/08
- [PATCH 10/42] migration-test: dirtylimit checks for x86_64 arch before,
Juan Quintela <=
- [PATCH 11/42] migration-test: Update test_ignore_shared to use args, Juan Quintela, 2023/06/08
- [PATCH 12/42] migration-test: Enable back ignore-shared test, Juan Quintela, 2023/06/08