[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/8] qtest: Set "-net none" in qtest_init()
From: |
Juan Quintela |
Subject: |
[PATCH 2/8] qtest: Set "-net none" in qtest_init() |
Date: |
Fri, 2 Sep 2022 18:51:20 +0200 |
This way, we don't have networking by default. If test needs it,
configure it.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
tests/qtest/bios-tables-test.c | 2 +-
tests/qtest/libqtest.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index 9c68f3658a..a0853744ae 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -725,7 +725,7 @@ static char *test_acpi_create_args(test_data *data, const
char *params,
}
} else {
args = g_strdup_printf("-machine %s %s -accel tcg "
- "-net none %s "
+ "%s "
"-drive id=hd0,if=none,file=%s,format=raw "
"-device %s,drive=hd0 ",
data->machine, data->tcg_only ? "" : "-accel kvm",
diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c
index 7c9fc07de4..ee84dbfc36 100644
--- a/tests/qtest/libqtest.c
+++ b/tests/qtest/libqtest.c
@@ -290,6 +290,7 @@ QTestState *qtest_init_without_qmp_handshake(const char
*extra_args)
"-chardev socket,path=%s,id=char0 "
"-mon chardev=char0,mode=control "
"-display none "
+ "-net none "
"%s"
" -accel qtest",
qemu_binary, tracearg, socket_path,
--
2.37.2
- [PATCH 0/8] tests: Make expliction defaults for tests, Juan Quintela, 2022/09/02
- [PATCH 2/8] qtest: Set "-net none" in qtest_init(),
Juan Quintela <=
- [PATCH 1/8] qtest: "-display none" is set in qtest_init(), Juan Quintela, 2022/09/02
- [PATCH 3/8] tests/acpi: The new default is -vga none, Juan Quintela, 2022/09/02
- [PATCH 4/8] tests/qtest: Add -vga none by default, Juan Quintela, 2022/09/02
- [PATCH 5/8] tests/acpi: Regenerate all needed tables, Juan Quintela, 2022/09/02
- [PATCH 6/8] tests: Fix error strings, Juan Quintela, 2022/09/02
- [PATCH 7/8] meson-build: Enable CONFIG_REPLICATION only when replication is set, Juan Quintela, 2022/09/02