From nobody Mon Feb 9 19:29:58 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1576634482; cv=none; d=zohomail.com; s=zohoarc; b=BY1heUXkWxc55az9Np5zEwMfJEFBknY3Do2iU4JyAvCOFZPAZKFnOONKdNIGPJiV9N1LPsXKQkEbR+LAAKXQ2RqmJ9Gjuz4xjnYykIIRAJbA0qr0+ZqgPwyWllFDL//F2AbHnbsq8kHM/HpqtoJ1IAZtcJVQvUBNprDNshd3oU0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576634482; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=IeTpPmgFpLTKpiUnhRgXZ+ahUwqDaincfVzgkSxVl5Q=; b=B0SXpx7Vku95zzCkUJGl6dR4edoVnW5JkWX1FjI8BtXddpWvo6pI7baUkx7tabPMQ8URH9RhD06qAEwARUEGaYxnLaGTl50H5QGyY7fc80U7HWEDpv+4VemOFfSj8QTPWcvF7lt4PItf1yIESBF+Estn/pRGda+KSbj1HnyM+YU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576634482896709.4251188251804; Tue, 17 Dec 2019 18:01:22 -0800 (PST) Received: from localhost ([::1]:48366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihOeP-00028Q-9d for importer@patchew.org; Tue, 17 Dec 2019 21:01:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37844) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihOYw-0004MD-RN for qemu-devel@nongnu.org; Tue, 17 Dec 2019 20:55:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihOYu-0004Yo-4W for qemu-devel@nongnu.org; Tue, 17 Dec 2019 20:55:41 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:48389 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ihOYt-0004Tj-Os for qemu-devel@nongnu.org; Tue, 17 Dec 2019 20:55:40 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-134-O8_i_BQANZqIXf-YXy03gg-1; Tue, 17 Dec 2019 20:55:35 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8ECA7800D48 for ; Wed, 18 Dec 2019 01:55:34 +0000 (UTC) Received: from secure.mitica (ovpn-116-32.ams2.redhat.com [10.36.116.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 142E068880; Wed, 18 Dec 2019 01:55:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576634136; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IeTpPmgFpLTKpiUnhRgXZ+ahUwqDaincfVzgkSxVl5Q=; b=XAr7wo1fpU9r7pR6m+23y8zKRyVpB45/zf6hymK9D4IrhjHjN/Hg2gVu2zEvestqPIr0pA q6j7tas79VPUqI96fLO+O7O86cxaSncu+ajCGGHhZrOhTzle8p9wxgHM/2KWtiPF3unZkO 7cTCCYUVmHS/cDCD+PhkewNgixRHkG4= From: Juan Quintela To: qemu-devel@nongnu.org Subject: [PATCH v2 06/10] migration-test: Move -name handling to common commandline Date: Wed, 18 Dec 2019 02:55:16 +0100 Message-Id: <20191218015520.2881-7-quintela@redhat.com> In-Reply-To: <20191218015520.2881-1-quintela@redhat.com> References: <20191218015520.2881-1-quintela@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: O8_i_BQANZqIXf-YXy03gg-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 205.139.110.61 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Paolo Bonzini , Thomas Huth , "Dr. David Alan Gilbert" , Juan Quintela Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Juan Quintela --- tests/migration-test.c | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/tests/migration-test.c b/tests/migration-test.c index e17d432043..6e828fbc6c 100644 --- a/tests/migration-test.c +++ b/tests/migration-test.c @@ -579,12 +579,10 @@ static int test_migrate_start(QTestState **from, QTes= tState **to, machine_type =3D ""; machine_args =3D ""; memory_size =3D "150M"; - cmd_src =3D g_strdup_printf(" -name source,debug-threads=3Don" - " -serial file:%s/src_serial" + cmd_src =3D g_strdup_printf(" -serial file:%s/src_serial" " -drive file=3D%s,format=3Draw", tmpfs, bootpath); - cmd_dst =3D g_strdup_printf(" -name target,debug-threads=3Don" - " -serial file:%s/dest_serial" + cmd_dst =3D g_strdup_printf(" -serial file:%s/dest_serial" " -drive file=3D%s,format=3Draw" " -incoming %s", tmpfs, bootpath, uri); @@ -595,11 +593,9 @@ static int test_migrate_start(QTestState **from, QTest= State **to, machine_type =3D ""; machine_args =3D ""; memory_size =3D "128M"; - cmd_src =3D g_strdup_printf(" -name source,debug-threads=3Don" - " -serial file:%s/src_serial -bios %s", + cmd_src =3D g_strdup_printf(" -serial file:%s/src_serial -bios %s", tmpfs, bootpath); - cmd_dst =3D g_strdup_printf(" -name target,debug-threads=3Don" - " -serial file:%s/dest_serial -bios %s" + cmd_dst =3D g_strdup_printf(" -serial file:%s/dest_serial -bios %s" " -incoming %s", tmpfs, bootpath, uri); start_address =3D S390_TEST_MEM_START; @@ -609,15 +605,13 @@ static int test_migrate_start(QTestState **from, QTes= tState **to, machine_args =3D ",vsmt=3D8"; memory_size =3D "256M"; cmd_src =3D g_strdup_printf("-nodefaults" - " -name source,debug-threads=3Don" " -serial file:%s/src_serial" " -prom-env 'use-nvramrc?=3Dtrue' -prom-= env " "'nvramrc=3Dhex .\" _\" begin %x %x " "do i c@ 1 + i c! 1000 +loop .\" B\" 0 " "until'", tmpfs, end_address, start_address); - cmd_dst =3D g_strdup_printf(" -name target,debug-threads=3Don" - " -serial file:%s/dest_serial" + cmd_dst =3D g_strdup_printf(" -serial file:%s/dest_serial" " -incoming %s", tmpfs, uri); =20 @@ -628,11 +622,11 @@ static int test_migrate_start(QTestState **from, QTes= tState **to, machine_type =3D "virt,"; machine_args =3D "gic-version=3Dmax"; memory_size =3D "150M"; - cmd_src =3D g_strdup_printf("-name vmsource,debug-threads=3Don -cp= u max " + cmd_src =3D g_strdup_printf("-cpu max " "-serial file:%s/src_serial " "-kernel %s", tmpfs, bootpath); - cmd_dst =3D g_strdup_printf("-name vmdest,debug-threads=3Don -cpu = max " + cmd_dst =3D g_strdup_printf("-cpu max " "-serial file:%s/dest_serial " "-kernel %s " "-incoming %s", @@ -666,6 +660,7 @@ static int test_migrate_start(QTestState **from, QTestS= tate **to, } =20 cmd_source =3D g_strdup_printf("-machine %saccel=3Dkvm:tcg%s " + "-name source,debug-threads=3Don " "-m %s " "%s %s %s %s", machine_type, machine_args, @@ -676,6 +671,7 @@ static int test_migrate_start(QTestState **from, QTestS= tate **to, g_free(cmd_source); =20 cmd_target =3D g_strdup_printf("-machine %saccel=3Dkvm:tcg%s " + "-name target,debug-threads=3Don " "-m %s " "%s %s %s %s", machine_type, machine_args, --=20 2.23.0