aboutsummaryrefslogtreecommitdiff
path: root/tests/pxe-test.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-11-19 16:40:44 +0100
committerThomas Huth <thuth@redhat.com>2018-12-17 15:36:40 +0100
commit43497c438d55e0e22369a6c633f9c8e3f6a498f2 (patch)
treece5094f04f2e46eaaee850f04ebffd84454a2830 /tests/pxe-test.c
parentdc4c1587223d8d5eb60a8ad2c465839545674442 (diff)
tests/pxe: Make test independent of global_qtest
global_qtest is not really required here, since boot_sector_test() is already independent from that global variable. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/pxe-test.c')
-rw-r--r--tests/pxe-test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/pxe-test.c b/tests/pxe-test.c
index 6e3679672c..73ac1d1c61 100644
--- a/tests/pxe-test.c
+++ b/tests/pxe-test.c
@@ -61,6 +61,7 @@ static testdef_t s390x_tests[] = {
static void test_pxe_one(const testdef_t *test, bool ipv6)
{
+ QTestState *qts;
char *args;
args = g_strdup_printf(
@@ -70,9 +71,9 @@ static void test_pxe_one(const testdef_t *test, bool ipv6)
test->machine, disk, ipv6 ? "off" : "on", ipv6 ? "on" : "off",
test->model);
- qtest_start(args);
- boot_sector_test(global_qtest);
- qtest_quit(global_qtest);
+ qts = qtest_init(args);
+ boot_sector_test(qts);
+ qtest_quit(qts);
g_free(args);
}