From nobody Tue Nov 26 22:33:31 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1704726903; cv=none; d=zohomail.com; s=zohoarc; b=nayqxN/j0z4+IyFwM6dqGoz8gAfMNX5JA82odV5WAkWVdf9+Qsj8zoOQ7Oz9xt9YzkUxSWgiX0MB38QGQQevQpsK8Uz/2gV5DjaMPeERCwXtOONpZFSXlmob5XZzlIAzHE430yPsNdheCqjLMtL9R0abx28p8JIFrtmSnZHdQHw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1704726903; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=D+qYSiNuHCw9vpeOMvQUbkSg7Ml8q939vYKp9TceBTU=; b=VABjC3ARKAKcVQziftS4oMN/Zwbx4u5CNiqRV8m1Y3Y8KAvmsceylvwjgJO6oxwfVuqM81+ygw4qDBRdXyBXky75DEPZslT/FDN7ryjwN5I9qMcougkjTvtpk9IsUHJlhAlRC0pcG7Pe4cw8xRYvvzQwlq1hMx+wYVnMETCCpLc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1704726903940691.5620801029625; Mon, 8 Jan 2024 07:15:03 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMrKN-0004JM-Hu; Mon, 08 Jan 2024 10:14:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rMrKL-0004Gk-Ml for qemu-devel@nongnu.org; Mon, 08 Jan 2024 10:14:09 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rMrKA-0001YJ-WC for qemu-devel@nongnu.org; Mon, 08 Jan 2024 10:14:09 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40e45504006so7481445e9.1 for ; Mon, 08 Jan 2024 07:13:58 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id j23-20020a05600c1c1700b0040d8ff79fd8sm150554wms.7.2024.01.08.07.13.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 07:13:53 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 28A885F942; Mon, 8 Jan 2024 15:13:53 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704726836; x=1705331636; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=D+qYSiNuHCw9vpeOMvQUbkSg7Ml8q939vYKp9TceBTU=; b=o/FI/5r+Uum1O0bvD5lHergn1BHTM4ASLdPgayHTsdzkBUPQ6k56oa7um9OeiAEMn5 SjS/7/04CzB62fEuoUPmy1dgABJJcG9DyD6nbzBWT1+pmh756qMSh0J7eYJeR4Z0C23a P+HpzMolEoOu8phodHcMoudtP5iS4cESy/liOUs76CORtRmOlyjvSFBxxELTpz8rafgI CK8+Sq6bSEzFvF4bDRWDRb0mtSsiHg46BmaY/3CthBBQ6Vq5UA25MLEsQkM94lpwNfQs jf5kFQkgjBMJPNHvCT6zgRH/r2yTGNTeQWBDpTPRh846+/DjEO4qD4UScr3WIL3unYkO 6z2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704726836; x=1705331636; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D+qYSiNuHCw9vpeOMvQUbkSg7Ml8q939vYKp9TceBTU=; b=HhJrrTZyHvE2DpQTyatNPaS3vdZK6uCNx0oRfQHbVP8RYvwHSIGRbEh2WtRUnWv4rL j8dSNs7tPhKhgUyt0EujL8mGYaLfYVBEWKjSNgbm6dvcxV9o5PWkgI8NoSftv/RlWWLq jlgnzQeCz1j1jXWmFpVL6YGrKG8gteh0CIfKqpEgVRsEGIDrI4hV5KezlIlbeieiYtVY Bqvcaehz+E0XPm/4DWo52eFIrk0LuoHSBVESTGa41/NdZoG3T/iczPEEqsUPjowkjYl5 uDx+RNcagZg+baz3dnumVBx7tfSYhPrKiFIITk/qGy9Xk011xjY4JJsM3YZduvx2+qH4 6Ouw== X-Gm-Message-State: AOJu0YyMnSxhjZf+XTBJv5eHwC7nB09pnzzZ2e2o9nbsJNcy2DmQORH1 0FN/bWMlpJkKUL1unHYlbIluk+1EH7TMeA== X-Google-Smtp-Source: AGHT+IGe+V6MY3TPFeAtLiA4vZSH1BScP0G7fuTXInxOfUpbJCIpolLDd++4X1KI8Ag+gzV7dZgJ7Q== X-Received: by 2002:a05:600c:3f87:b0:40e:44c3:e0eb with SMTP id fs7-20020a05600c3f8700b0040e44c3e0ebmr1167197wmb.28.1704726836343; Mon, 08 Jan 2024 07:13:56 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Pavel Dovgalyuk , Paolo Bonzini , Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 03/13] tests/avocado: modernise the drive args for replay_linux Date: Mon, 8 Jan 2024 15:13:42 +0000 Message-Id: <20240108151352.2199097-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240108151352.2199097-1-alex.bennee@linaro.org> References: <20240108151352.2199097-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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; Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1704726905671100003 QEMU complains about us not being explicit with setting snapshot so lets do that. Also as cdroms are RO media we don't need to jump the hoops of setting up snapshots and replay disks - just declare the drive is a cdrom and nothing should change. Signed-off-by: Alex Benn=C3=A9e Message-Id: <20231211091346.14616-4-alex.bennee@linaro.org> diff --git a/tests/avocado/replay_linux.py b/tests/avocado/replay_linux.py index e95bff32999..f3a43dc98c2 100644 --- a/tests/avocado/replay_linux.py +++ b/tests/avocado/replay_linux.py @@ -48,12 +48,15 @@ def vm_add_disk(self, vm, path, id, device): bus_string =3D '' if self.bus: bus_string =3D ',bus=3D%s.%d' % (self.bus, id,) - vm.add_args('-drive', 'file=3D%s,snapshot,id=3Ddisk%s,if=3Dnone' %= (path, id)) + vm.add_args('-drive', 'file=3D%s,snapshot=3Don,id=3Ddisk%s,if=3Dno= ne' % (path, id)) vm.add_args('-drive', 'driver=3Dblkreplay,id=3Ddisk%s-rr,if=3Dnone,image=3Ddisk%s' %= (id, id)) vm.add_args('-device', '%s,drive=3Ddisk%s-rr%s' % (device, id, bus_string)) =20 + def vm_add_cdrom(self, vm, path, id, device): + vm.add_args('-drive', 'file=3D%s,id=3Ddisk%s,if=3Dnone,media=3Dcdr= om' % (path, id)) + def launch_and_wait(self, record, args, shift): self.require_netdev('user') vm =3D self.get_vm() @@ -65,7 +68,7 @@ def launch_and_wait(self, record, args, shift): if args: vm.add_args(*args) self.vm_add_disk(vm, self.boot_path, 0, self.hdd) - self.vm_add_disk(vm, self.cloudinit_path, 1, self.cd) + self.vm_add_cdrom(vm, self.cloudinit_path, 1, self.cd) logger =3D logging.getLogger('replay') if record: logger.info('recording the execution...') --=20 2.39.2