From nobody Wed Feb 11 05:17:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1616175594; cv=none; d=zohomail.com; s=zohoarc; b=PIXf09ozwkVy9+XdV6qjFPkCW+sOMB1PBv1uEe6n68KVRpwM7cGM+iQIRD+zEWPuMKA8/aGHPDmhIsDvXLgpdB93vMdVgcvsIYZNPmpaQsXUvkiZoSgF5/GI8V+BAWxipm6klKikSkovtg0V45MM7O0zB/dZOz9XZPxuKBVtgjU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1616175594; h=Content-Type:Content-Transfer-Encoding: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=WC0cLs9IhdF4Vio1oRYxSixyxE6u7SqKwWY+ApU4nxs=; b=l9UolnzwhdBxr4l8OQtdNur1Gr/gC6DR6PzGPAZg8iDNuT2ph8sgwHsRkAdCMqLT8u1FWlVfNdAXXMs2p/ZOjbvh43xDVejARwxQkAXMkz2MVc8pGhRQ7DHm+Ais8KvhZEy13hAoZ+wHgIYK1d8ZOnuReEoGxh0HoH2i8d0KeXk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1616175594602407.14008663162747; Fri, 19 Mar 2021 10:39:54 -0700 (PDT) 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-269-GhdeebwVPSKs3pPtM5q3Tg-1; Fri, 19 Mar 2021 13:39:51 -0400 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 D4D06107ACCD; Fri, 19 Mar 2021 17:39:44 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 624295D72E; Fri, 19 Mar 2021 17:39:44 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id DB3DF4BB7C; Fri, 19 Mar 2021 17:39:42 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 12JHdglo018654 for ; Fri, 19 Mar 2021 13:39:42 -0400 Received: by smtp.corp.redhat.com (Postfix) id 43CA15C237; Fri, 19 Mar 2021 17:39:42 +0000 (UTC) Received: from harajuku.usersys.redhat.com (unknown [10.40.194.138]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 892F95C1BB for ; Fri, 19 Mar 2021 17:39:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616175593; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=WC0cLs9IhdF4Vio1oRYxSixyxE6u7SqKwWY+ApU4nxs=; b=ZhSynKQfSKJa1EJMJ0Uikimpqe1kb59v6EhhD8MD0bJNsEBEDmbMMvp6Ygdc0x9p8Hlv8+ 8VsWzI0WdsMHEwnP/E0HxV3IY6AzSvTUyhHBduLaLs6pwnCBAoAHf8CAeNdJ4CBwdayRx8 gfi4n5L0bE+pQfpGS9UKUx5XnXLAUWw= X-MC-Unique: GhdeebwVPSKs3pPtM5q3Tg-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 2/3] tests: Fix flake8 errors in virsh-auth Date: Fri, 19 Mar 2021 18:39:30 +0100 Message-Id: <20210319173931.360685-3-abologna@redhat.com> In-Reply-To: <20210319173931.360685-1-abologna@redhat.com> References: <20210319173931.360685-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Specifically E111 indentation is not a multiple of four This commit is better viewed with 'git show -w'. Signed-off-by: Andrea Bolognani Reviewed-by: Erik Skultety --- tests/virsh-auth | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/virsh-auth b/tests/virsh-auth index d548694190..ce3a599107 100755 --- a/tests/virsh-auth +++ b/tests/virsh-auth @@ -24,11 +24,11 @@ import subprocess =20 builddir =3D os.getenv("abs_top_builddir") if builddir is None: - builddir =3D os.path.join(os.getcwd(), "..") + builddir =3D os.path.join(os.getcwd(), "..") =20 srcdir =3D os.getenv("abs_top_srcdir") if srcdir is None: - srcdir =3D os.path.abspath(os.path.join(os.path.dirname(__file__), ".."= )) + srcdir =3D os.path.abspath(os.path.join(os.path.dirname(__file__), "..= ")) =20 uri =3D "test://" + os.path.join(srcdir, "tests", "virsh-auth.xml") =20 @@ -43,15 +43,15 @@ proc =3D subprocess.Popen([virsh, "-c", uri, "uri"], out, err =3D proc.communicate("astrochicken") =20 if proc.returncode !=3D 0: - print("virsh failed with code %d" % proc.returncode, file=3Dsys.stderr) - if out !=3D "": - print("stdout=3D%s" % out) - if err !=3D "": - print("stderr=3D%s" % err) - sys.exit(1) + print("virsh failed with code %d" % proc.returncode, file=3Dsys.stderr) + if out !=3D "": + print("stdout=3D%s" % out) + if err !=3D "": + print("stderr=3D%s" % err) + sys.exit(1) =20 if uri not in out: - print("Expected '%s' in '%s'" % (uri, out), file=3Dsys.stderr) - sys.exit(1) + print("Expected '%s' in '%s'" % (uri, out), file=3Dsys.stderr) + sys.exit(1) =20 sys.exit(0) --=20 2.26.3