From nobody Mon Feb 9 20:46:11 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; dkim=fail; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 151370504723819.221164633931494; Tue, 19 Dec 2017 09:37:27 -0800 (PST) Received: from localhost ([::1]:56346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRLpV-0002kq-6T for importer@patchew.org; Tue, 19 Dec 2017 12:37:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRLnQ-0001Oi-4Z for qemu-devel@nongnu.org; Tue, 19 Dec 2017 12:35:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRLnO-0000b4-Oi for qemu-devel@nongnu.org; Tue, 19 Dec 2017 12:35:16 -0500 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]:46860) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRLnO-0000ao-9o; Tue, 19 Dec 2017 12:35:14 -0500 Received: by mail-qt0-x244.google.com with SMTP id r39so25075189qtr.13; Tue, 19 Dec 2017 09:35:14 -0800 (PST) Received: from x1.local ([138.117.48.211]) by smtp.gmail.com with ESMTPSA id z17sm9295525qti.59.2017.12.19.09.35.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Dec 2017 09:35:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aX3uwmiYWHOyegbOpMVEi8fFdPKLwjeUO69cwAIgf/w=; b=gb/KUm5CcN6MD8YUkgRPzHrTcA3bdqAjJ37fy0s9/z2xhQWovIUkg9vNG3wFihf5RX LB1JpsozsWr8DgxvDxDOELejxkyIKxYUOqYxlVq//wlonO0NpvnSBIz5Gfzlfi7B+W+M Z7Fwp2UbcZu8ZOylZEZ0hE5vUqFGsciHzUJ/V5BLUbPH68hNDnI17DtAcrBpR0WtVwVr BsAkbf42HGviVeuoAXsxRJinF50psd9dqve8kLrGbJHAdTbI6j8e5aczXBavwRCROV+t F1OTTt//6BOwNGxmKQGJUcZ876FT3ijbem98p4PhBH/Bj42Gtu+mzt9cxQYmSRDxS6Nj dVYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=aX3uwmiYWHOyegbOpMVEi8fFdPKLwjeUO69cwAIgf/w=; b=TyMOL5y+L6Dy6K4S33gDfR9v1kJTVCMs4yIHBD9QNCIsQ3TIgFR6+kEW5VQcse+vDK 9M/Sa/2v1RkuA15Vzw+D2ctgGPudzb21yidvPfppvVMHlCMo/xWogygGGnLC4GH5oj3O vLqmHwQpYu4ZoQEQjH4rGomo13eiTo1rX2gYnyOj5VSacO+ZoKC+gEwPtNwCiBFV6lKi w9SS+3ZOE+yQhTMiOvAfKbjXP+/vSfsY8v96vzYqed6BbiJpwdCA2StEXesWxLQCIBtD /lnj6b+F7JJs4KLkm+0m/BrEelNuZW5PVqPBfw3RHhAJ4MTWaPMCk4Ztg2c2/UgET8wn WcBw== X-Gm-Message-State: AKGB3mJ82ejtcB2LHUZzTAskuwptbd7wouZqR46L5+Dr0SWpvZoYCA1R EOEyQgfwcZtwOkxb3uEeKjE= X-Google-Smtp-Source: ACJfBov+H6lM2/45/tbnYUnirFnLK0xycwqqhPz8j5k8qBZA03mS9zXDQrmDABmhSLlBPv2VIVCUgg== X-Received: by 10.200.56.75 with SMTP id r11mr5918693qtb.65.1513704913714; Tue, 19 Dec 2017 09:35:13 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Kevin Wolf , Max Reitz , Cleber Rosa , Eduardo Habkost , =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= , "Daniel P . Berrange" , Eric Blake , Stefan Hajnoczi , Fam Zheng , Markus Armbruster Date: Tue, 19 Dec 2017 14:34:19 -0300 Message-Id: <20171219173425.8113-4-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171219173425.8113-1-f4bug@amsat.org> References: <20171219173425.8113-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::244 Subject: [Qemu-devel] [PATCH 3/9] iotests: replace print statement by print() function for python3 compatibility 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: Janosch Frank , qemu-block@nongnu.org, Nir Soffer , Ishani Chugh , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, Paolo Bonzini , John Snow Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/qemu-iotests/149 | 3 ++- tests/qemu-iotests/165 | 3 ++- tests/qemu-iotests/iotests.py | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/qemu-iotests/149 b/tests/qemu-iotests/149 index 223cd68ad5..d3ffa259db 100755 --- a/tests/qemu-iotests/149 +++ b/tests/qemu-iotests/149 @@ -20,6 +20,7 @@ # Exercise the QEMU 'luks' block driver to validate interoperability # with the Linux dm-crypt + cryptsetup implementation =20 +from __future__ import print_function import subprocess import os import os.path @@ -376,7 +377,7 @@ def test_once(config, qemu_img=3DFalse): finally: iotests.log("# Delete image") delete_image(config) - print + print() =20 =20 # Obviously we only work with the luks image format diff --git a/tests/qemu-iotests/165 b/tests/qemu-iotests/165 index a3932db3de..ab29066076 100755 --- a/tests/qemu-iotests/165 +++ b/tests/qemu-iotests/165 @@ -18,6 +18,7 @@ # along with this program. If not, see . # =20 +from __future__ import print_function import os import re import iotests @@ -85,7 +86,7 @@ class TestPersistentDirtyBitmap(iotests.QMPTestCase): log =3D re.sub(r'^\[I \d+\.\d+\] OPENED\n', '', log) log =3D re.sub(r'\[I \+\d+\.\d+\] CLOSED\n?$', '', log) if log: - print log + print(log) =20 self.vm =3D self.mkVm() self.vm.launch() diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 6f057904a9..85c9d2c211 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -16,6 +16,7 @@ # along with this program. If not, see . # =20 +from __future__ import print_function import errno import os import re @@ -145,7 +146,7 @@ def filter_qmp_event(event): def log(msg, filters=3D[]): for flt in filters: msg =3D flt(msg) - print msg + print(msg) =20 class Timeout: def __init__(self, seconds, errmsg =3D "Timeout"): @@ -417,7 +418,7 @@ def notrun(reason): seq =3D os.path.basename(sys.argv[0]) =20 open('%s/%s.notrun' % (output_dir, seq), 'wb').write(reason + '\n') - print '%s not run: %s' % (seq, reason) + print("{} not run: {}".format(seq, reason)) sys.exit(0) =20 def verify_image_format(supported_fmts=3D[], unsupported_fmts=3D[]): --=20 2.15.1