From nobody Mon Feb 9 10:29:45 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1544115240027729.4911408495836; Thu, 6 Dec 2018 08:54:00 -0800 (PST) Received: from localhost ([::1]:41955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUwuU-0007ft-Bn for importer@patchew.org; Thu, 06 Dec 2018 11:53:58 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUwqv-0005IX-I0 for qemu-devel@nongnu.org; Thu, 06 Dec 2018 11:50:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUwqu-0007fT-O7 for qemu-devel@nongnu.org; Thu, 06 Dec 2018 11:50:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52388) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gUwqu-0007ez-H3 for qemu-devel@nongnu.org; Thu, 06 Dec 2018 11:50:16 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DF0B12D7E4 for ; Thu, 6 Dec 2018 16:50:15 +0000 (UTC) Received: from thuth.com (ovpn-116-95.ams2.redhat.com [10.36.116.95]) by smtp.corp.redhat.com (Postfix) with ESMTP id 067E0104C53B; Thu, 6 Dec 2018 16:50:13 +0000 (UTC) From: Thomas Huth To: qemu-devel@nongnu.org Date: Thu, 6 Dec 2018 17:49:58 +0100 Message-Id: <1544114998-1513-6-git-send-email-thuth@redhat.com> In-Reply-To: <1544114998-1513-1-git-send-email-thuth@redhat.com> References: <1544114998-1513-1-git-send-email-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 06 Dec 2018 16:50:15 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH for-4.0 5/5] tests/pxe: Make test independent from global_qtest X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Paolo Bonzini Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" global_qtest is not really required here, since boot_sector_test() is already independent from that global variable. Signed-off-by: Thomas Huth Reviewed-by: Eric Blake --- tests/pxe-test.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/pxe-test.c b/tests/pxe-test.c index 6e36796..73ac1d1 100644 --- a/tests/pxe-test.c +++ b/tests/pxe-test.c @@ -61,6 +61,7 @@ static testdef_t s390x_tests[] =3D { =20 static void test_pxe_one(const testdef_t *test, bool ipv6) { + QTestState *qts; char *args; =20 args =3D 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); =20 - qtest_start(args); - boot_sector_test(global_qtest); - qtest_quit(global_qtest); + qts =3D qtest_init(args); + boot_sector_test(qts); + qtest_quit(qts); g_free(args); } =20 --=20 1.8.3.1