From patchwork Mon Nov 13 18:17:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 743482 Delivered-To: patch@linaro.org Received: by 2002:a5d:67cf:0:b0:32d:baff:b0ca with SMTP id n15csp1773909wrw; Mon, 13 Nov 2023 10:19:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXHLPisi092EY+CDMh4ZAMxRAkXIg+MGbGfhns95ZSoVyGL6ccvtCZPtpqFieTnY2VPZ4k X-Received: by 2002:a25:ae56:0:b0:d9c:a583:9db0 with SMTP id g22-20020a25ae56000000b00d9ca5839db0mr6670084ybe.39.1699899556952; Mon, 13 Nov 2023 10:19:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699899556; cv=none; d=google.com; s=arc-20160816; b=e4LJHEwc2eUKPl3VmndNdw5VS5DWyA6SkKPkYlAsHCRax0kMuM1p3ggkrQsyJ4sZGj 013N/3FaUC8i9TtlKVKpxlVog17FCHhCMWfpoUycyk5p4JjU6upEveJkqbre+Peux8wv kSs9gPElqNF1wRfgKByduX1NqD6ap7CbPdKG3nA8Rupr3JyRgQTLHVi5ZH6CICbVY5/F lmq2hFatkAe7GpXDBj98Gt7Hn4+qN8drROmjwbYCQHt9dn7nS1xQqmM1ooc9W3B/9/Q9 pOGIuZje9Utq8rmCL/beW06Oz+uW3nqAU8RttwuUTPASq/MCSL3HtPEXVghgBJein5EC 1SjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ifmwVFTsAvMvKqxRkmI19PrzZdtj10CaHWbOV7iF2UM=; fh=xhTf0SM7jzWRyUj14BX5Q5Fv3LT4hL4rStqTr6cdsYU=; b=oPvtCJL8Ta0mXo4BROcSetQZYLzPHxAHEbi2bn63GCvzl/07WuL8ODF38b2TpsmGeS /Kef5v2k3HungKXCm1Sp6qwV7MF+OfLU3wz2rD6hn3iIue3rp1M3DMPGRxeDcgBu54Zq m1nfzQAPXGRc98PyPk+e9PvQ7MTpnhO7he+cq2DnluIaTWz72zxnoxXhMxR+9AhLChhv q7l7SOpr8wjBjAoWJ8YLFlX0cPRm9ZngtJaobO6O81VrRLjfXyzjIaO7N9Kfg95z6mlm rIdSD/Vr/D08g6f9dNPoauq7VczflgWzWscydmaXaWfjnV6uHFYXNR117PhwnaxN7lZV JHSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yveT8bMv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id da18-20020a05621408d200b0064f70ebac6asi5076127qvb.106.2023.11.13.10.19.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Nov 2023 10:19:16 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yveT8bMv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r2bVm-0007se-1z; Mon, 13 Nov 2023 13:18:14 -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 1r2bVk-0007oJ-SW for qemu-devel@nongnu.org; Mon, 13 Nov 2023 13:18:12 -0500 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r2bVj-0000YO-3B for qemu-devel@nongnu.org; Mon, 13 Nov 2023 13:18:12 -0500 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-9d242846194so701585666b.1 for ; Mon, 13 Nov 2023 10:18:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699899489; x=1700504289; 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=ifmwVFTsAvMvKqxRkmI19PrzZdtj10CaHWbOV7iF2UM=; b=yveT8bMvDHIiLC1ZYPXtGqeGPHOCOe3BuiWCyNf0X0GoajGhMGYu9bkODvwfX6+q17 UatPOYtq1+xuA37CWWWsL3LPMN92KiABbs3nOODRqBDIF032XvHrGFM+hMWOP3fZ0ZeQ iPuSL2wMafp8jt6z5+CoFg2dIGwycuIQGNxVdigd76BhQNUI3ccXUmvbQ9poG9SINfLG rA2ERB7A8eCqUtixP1aofvmVnFpd7sb+5nHFGfTSdLhauu92XFrM+q17AUOC71F3uPVS XfLY6F4P0UltDS0FfX1w9CiuxfgcFSIEc5CPyh8711s6e6G97lnmK8wwK7FyksF08U+N v2QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699899489; x=1700504289; 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=ifmwVFTsAvMvKqxRkmI19PrzZdtj10CaHWbOV7iF2UM=; b=v1PuTuI8wxhwttTp+TiFHJJTXz9hDQHuRYGkVbMLEB7z2SPDaPQz+zB+7GQrhHHA7z x9ROjcUi44Twi8lnyBS58XMBQhQ1oFeG+bzQBdV5/iSMQbd7Cbl2C+qeFdtQdhiUGiNi Ig0T02CTX+gKpLczUs7AdnR3jU+cjl9OSqIcibuUGSDrT6qI5OkamBg9Z/4yyK2JqCAW 0YnCmlMlFxQRsEM5X+tI22p1qDxO7lpDWF+Y++HFURbpg/gKBY4O80xY7woI9J31Dsi4 giJ19QgwVZ0rHiKAnGWhuhUJ8zIr1dQAHCmEWIQ2DC6ivDuzGwc8oJYzhFE7CBWmfcQ3 vnXg== X-Gm-Message-State: AOJu0Yz8y4x4wpg/CDfjZ4J0nVRUHAJAdv/JnEoBKIjZCRZg+U+kQSnY 9oiVTNrMGiBCqdo98RdWYpUXyrNRjA0nOojb9tA= X-Received: by 2002:a17:906:268b:b0:9e6:59d5:820d with SMTP id t11-20020a170906268b00b009e659d5820dmr5255342ejc.2.1699899489669; Mon, 13 Nov 2023 10:18:09 -0800 (PST) Received: from m1x-phil.lan ([176.164.221.204]) by smtp.gmail.com with ESMTPSA id c20-20020a17090603d400b009e61366a4c3sm4360438eja.2.2023.11.13.10.18.08 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 13 Nov 2023 10:18:09 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, Thomas Huth , =?utf-8?q?Philipp?= =?utf-8?q?e_Mathieu-Daud=C3=A9?= , Halil Pasic , Christian Borntraeger , Eric Farman , Cleber Rosa , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 4/5] tests/avocado/machine_s390_ccw_virtio.py: Fix SyntaxWarnings from python 3.12 Date: Mon, 13 Nov 2023 19:17:43 +0100 Message-ID: <20231113181744.49537-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231113181744.49537-1-philmd@linaro.org> References: <20231113181744.49537-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=philmd@linaro.org; helo=mail-ej1-x632.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Thomas Huth Python 3.12 now warns about backslashes in strings that aren't used for escaping a special character from Python. Silence the warning by using raw strings here instead. Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20231113140721.46903-1-thuth@redhat.com> Signed-off-by: Philippe Mathieu-Daudé --- tests/avocado/machine_s390_ccw_virtio.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/avocado/machine_s390_ccw_virtio.py b/tests/avocado/machine_s390_ccw_virtio.py index e1f493bc44..ffd914ded9 100644 --- a/tests/avocado/machine_s390_ccw_virtio.py +++ b/tests/avocado/machine_s390_ccw_virtio.py @@ -36,8 +36,8 @@ def wait_for_crw_reports(self): dmesg_clear_count = 1 def clear_guest_dmesg(self): exec_command_and_wait_for_pattern(self, 'dmesg -c > /dev/null; ' - 'echo dm_clear\ ' + str(self.dmesg_clear_count), - 'dm_clear ' + str(self.dmesg_clear_count)) + r'echo dm_clear\ ' + str(self.dmesg_clear_count), + r'dm_clear ' + str(self.dmesg_clear_count)) self.dmesg_clear_count += 1 def test_s390x_devices(self): @@ -121,15 +121,15 @@ def test_s390x_devices(self): 'cat /sys/bus/ccw/devices/0.1.1111/cutype', '3832/01') exec_command_and_wait_for_pattern(self, - 'cat /sys/bus/pci/devices/0005\:00\:00.0/subsystem_vendor', - '0x1af4') + r'cat /sys/bus/pci/devices/0005\:00\:00.0/subsystem_vendor', + r'0x1af4') exec_command_and_wait_for_pattern(self, - 'cat /sys/bus/pci/devices/0005\:00\:00.0/subsystem_device', - '0x0001') + r'cat /sys/bus/pci/devices/0005\:00\:00.0/subsystem_device', + r'0x0001') # check fid propagation exec_command_and_wait_for_pattern(self, - 'cat /sys/bus/pci/devices/000a\:00\:00.0/function_id', - '0x0000000c') + r'cat /sys/bus/pci/devices/000a\:00\:00.0/function_id', + r'0x0000000c') # add another device self.clear_guest_dmesg() self.vm.cmd('device_add', driver='virtio-net-ccw', @@ -235,7 +235,7 @@ def test_s390x_fedora(self): 'while ! (dmesg | grep gpudrmfb) ; do sleep 1 ; done', 'virtio_gpudrmfb frame buffer device') exec_command_and_wait_for_pattern(self, - 'echo -e "\e[?25l" > /dev/tty0', ':/#') + r'echo -e "\e[?25l" > /dev/tty0', ':/#') exec_command_and_wait_for_pattern(self, 'for ((i=0;i<250;i++)); do ' 'echo " The qu ick fo x j ump s o ver a laz y d og" >> fox.txt;' 'done',