From nobody Mon Feb 9 14:14:55 2026 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=1619190495; cv=none; d=zohomail.com; s=zohoarc; b=eynZLMgdzS1Y8FRdi8/wpuaM2zhf5phKOCGUG4zstfyYqQ0PB12w+VC1XowwAxGyg0xSVsgj0UZtLERW/0B77wkkLyTzH18zMi+sXekn8LbimTNvCW5cdsv8bEZ54SuQBOzarTCZ3Pa+yiUSmeiwGDyCVbq6WTFlMRzeEUromto= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1619190495; 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=g6IAnzqQxYi4kYgrNedZIumT0QyiusveK8WUejHfGIM=; b=CfHnVNysnPQH3gOshdPLaVbDgAMGsE5cQ/zRo5l9RafjwlPsavForM0Y8YEBY3QO24z+3fSqFZooOUT/BUsCoeoua8luClAVU50gYSMZlAdjTHTywyEHFiEhdtmODcoDiUSeeGHlUvnugVKvWDZIx8/1l2soZrm/520X/9x/73A= 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 161919049541570.10807588076409; Fri, 23 Apr 2021 08:08:15 -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-250-3FvYo4_qM3WOQmKySKo8uA-1; Fri, 23 Apr 2021 11:08:11 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CF26C18397A5; Fri, 23 Apr 2021 15:08:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AA2BE60C13; Fri, 23 Apr 2021 15:08: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 6E6D21806D21; Fri, 23 Apr 2021 15:08:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 13NF3Qcw031743 for ; Fri, 23 Apr 2021 11:03:26 -0400 Received: by smtp.corp.redhat.com (Postfix) id D5E7910016DB; Fri, 23 Apr 2021 15:03:26 +0000 (UTC) Received: from harajuku.usersys.redhat.com (unknown [10.40.195.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0E5F610027A5 for ; Fri, 23 Apr 2021 15:03:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619190493; 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=g6IAnzqQxYi4kYgrNedZIumT0QyiusveK8WUejHfGIM=; b=BMa/XR+6adqDbivS3SUpFTH/5jCgyClfnw68tRSV4FAleMcDg8cRbmncxcEQJfEb2793P5 seSHCQUY8b9veToVi6ouCpywEgJVv2VE/zjk5Si8hF5blWDB0deppimAJ/pTzh/UewB6n0 h00RfU8/5WarjzykJUjd6MIFdi1OGRU= X-MC-Unique: 3FvYo4_qM3WOQmKySKo8uA-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 08/11] ci: helper: Add _make_run_action() function Date: Fri, 23 Apr 2021 17:03:05 +0200 Message-Id: <20210423150308.346189-9-abologna@redhat.com> In-Reply-To: <20210423150308.346189-1-abologna@redhat.com> References: <20210423150308.346189-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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.12 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" This provides a single place where we can process self._args before handing the control over to make; later on, we're going to implement more logic that can be shared by the build, test and shell actions. Signed-off-by: Andrea Bolognani --- ci/helper | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ci/helper b/ci/helper index 6543a47131..31e05c0e38 100755 --- a/ci/helper +++ b/ci/helper @@ -186,6 +186,11 @@ class Application: if pty.spawn(["make"] + args) !=3D 0: sys.exit("error: 'make' failed") =20 + def _make_run_action(self, action): + target =3D self._args.target + make_target =3D f"{action}@{target}" + self._make_run(make_target) + def _lcitool_run(self, args): output =3D subprocess.check_output([self._args.lcitool] + args) return output.decode("utf-8") @@ -298,13 +303,13 @@ class Application: print(msg.replace("STALE_DETAILS", stale_details)) =20 def _action_build(self): - self._make_run(f"ci-build@{self._args.target}") + self._make_run_action("ci-build") =20 def _action_test(self): - self._make_run(f"ci-test@{self._args.target}") + self._make_run_action("ci-test") =20 def _action_shell(self): - self._make_run(f"ci-shell@{self._args.target}") + self._make_run_action("ci-shell") =20 def _action_list_images(self): registry_uri =3D util.get_registry_uri(self._args.namespace, --=20 2.26.3