From nobody Fri Dec 19 19:18:36 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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 170.10.133.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=1616083933; cv=none; d=zohomail.com; s=zohoarc; b=hQ3B4KoChz/6s1TCP8FVNOL3QbguG+uMkYHxD/LtICAhZhhV8vq40ozahtFK3f+gpmUGD7QfHG1Lr26yIIXLcKfJVGJX90BWL/FS9uh9YblVkAhb/27FBBE2SX+0nILZ+4jcHWaUjIGCoj/HhvrFEauDobS7TSp19eYvPHtboqc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1616083933; 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=CWBajPV4m4L5yCj5ITd0Rur/S8MhZvHN4n5YM26tRwo=; b=BpdsHtmw/8Y8iD6HSEctHrYFGHREgoi2fWc0vAgOAU9uf0//pPCmpia2C4ljpDImddfXu2+pM4qg+tuwo1EoQG6WXeWtFaa4Lmk0JE/YeANu261VBHgSXkD2wdpeUyXiz++hCNRns8sv8vocWrBJJrbmqHQjmesx0N6yMFSwkPg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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 [170.10.133.124]) by mx.zohomail.com with SMTPS id 1616083933138511.3769537196863; Thu, 18 Mar 2021 09:12:13 -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-50-wNCGySU2NJqZm_a8DEAWiA-1; Thu, 18 Mar 2021 12:12:09 -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 8FFAB108BD07; Thu, 18 Mar 2021 16:12:03 +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 651A75D761; Thu, 18 Mar 2021 16:12:03 +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 22B584A7CD; Thu, 18 Mar 2021 16:12:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 12IGBqct024191 for ; Thu, 18 Mar 2021 12:11:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id E76D360CE6; Thu, 18 Mar 2021 16:11:52 +0000 (UTC) Received: from nautilus.redhat.com (unknown [10.40.192.180]) by smtp.corp.redhat.com (Postfix) with ESMTP id 429C460CD7; Thu, 18 Mar 2021 16:11:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616083931; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=CWBajPV4m4L5yCj5ITd0Rur/S8MhZvHN4n5YM26tRwo=; b=NrYaTWt4lMV1xPEpQ+rINy1B9hQMxUN9R9OVlLIZzfyCdkrOHySu043K0zo2ohrAi0b4vk lKBMou08Q0pNZiayBil5RlapwAW+4gPUtIEJpIxY5DteuCENwHgxVsPIv8zQZ/WOJX+gO7 Zxivxhq6+Nht1MVKMxLGo/JxJIJYSg0= X-MC-Unique: wNCGySU2NJqZm_a8DEAWiA-1 From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH v4 2/6] ci: helper: Introduce --quiet Date: Thu, 18 Mar 2021 17:11:42 +0100 Message-Id: <9100c64bc3cd8838c39264ed83fbf137eb96b860.1616083899.git.eskultet@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Cc: eskultet@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" Offer an option to silence all output to stdout, e.g. when generating dockerfiles/varsfiles. Signed-off-by: Erik Skultety Reviewed-by: Andrea Bolognani --- ci/helper | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ci/helper b/ci/helper index 8f34f4b59d..53baef3cb1 100755 --- a/ci/helper +++ b/ci/helper @@ -116,6 +116,12 @@ class Parser: parents=3D[lcitoolparser], formatter_class=3Dargparse.ArgumentDefaultsHelpFormatter, ) + refreshparser.add_argument( + "--quiet", + action=3D"store_true", + default=3DFalse, + help=3D"refresh data silently" + ) refreshparser.set_defaults(func=3DApplication.action_refresh) =20 def parse(self): @@ -173,7 +179,8 @@ class Application: outfile =3D f"ci-{host}-cross-{cross}.Dockerfile" =20 outpath =3D outdir.joinpath(outfile) - print(outpath) + if not self.args.quiet: + print(outpath) =20 output =3D self.lcitool_run(args) with open(outpath, "w") as f: @@ -185,7 +192,8 @@ class Application: outfile =3D f"{host}.vars" =20 outpath =3D outdir.joinpath(outfile) - print(outpath) + if not self.args.quiet: + print(outpath) =20 output =3D self.lcitool_run(args) with open(outpath, "w") as f: --=20 2.30.2