From nobody Sun Feb 8 06:49:23 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=1692986226; cv=none; d=zohomail.com; s=zohoarc; b=I3D1ZRQUceG3sLG+D5YKWW5/L36Dp43RnSR8JayhhdbE3AUXqaeliPWlJHMmDfiEJyAJNpcZezyq+P6OxS/PPM4wFmjWOeO0a8SKgdYj0QVZfbpNqqI0UrUsP8GfbE9CHrO1tVrNjD7PtbyQ7io4yhbbhU0VltxjCn7jb4xdpgw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692986226; 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=dQXAr+NqTY4JHPdv8M7Abjw8nE7z1XYdpmn0RfG9Ea8=; b=hI7lw1MiCxcsxc2S6xFMw0Vq/azA9mFYqUrNa3jxEAZuRbUDs9C/vR3dNeokz0fWREsUIJSOnIM4bJnqu4plWQ+Av+kPnprtRs801ISxwr3+eJNBI5bDG8jMSFiPxS/7YSHntexNz66YaDb7bxGUEOOP6/8W9tVnq3N1V2+luRk= 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) 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 1692986226724853.537296684726; Fri, 25 Aug 2023 10:57:06 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-444-8U-3ZrvdN2abDnoDbYrAAg-1; Fri, 25 Aug 2023 13:56:19 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 33FC83C14AC6; Fri, 25 Aug 2023 17:56:07 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1EADC140E950; Fri, 25 Aug 2023 17:56:07 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id E5EB019466DF; Fri, 25 Aug 2023 17:56:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 87E9F1946A67 for ; Fri, 25 Aug 2023 17:56:05 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 726234A9004; Fri, 25 Aug 2023 17:56:05 +0000 (UTC) Received: from orca.. (unknown [10.45.225.96]) by smtp.corp.redhat.com (Postfix) with ESMTP id EDCAE492C14; Fri, 25 Aug 2023 17:56:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692986225; 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=dQXAr+NqTY4JHPdv8M7Abjw8nE7z1XYdpmn0RfG9Ea8=; b=Avop0y7MAjFVSHclpdyTx3gdErTOyVvGJhTwfKkwtrPX94Cn/xXCdxRiry7tLXKxQ/DTEt +4YGkDPdxH2OCQlDAJHvmDsphqV1bS5cTTRgBjOTUT+e7htGTyS9+ffwkMA28AMyTXHFO0 0eKwOpQo37xkUhIMoLLAow6xQL3O5DA= X-MC-Unique: 8U-3ZrvdN2abDnoDbYrAAg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH 28/33] ci: helper: Add a helper to create a local repo clone Pythonic way Date: Fri, 25 Aug 2023 19:55:36 +0200 Message-ID: <2fa855bc00e1ef4b680c2423bf8a7486fdb1251f.1692986130.git.eskultet@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Erik Skultety Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1692986227780100010 Content-Type: text/plain; charset="utf-8"; x-default="true" A proper Python equivalent of 'git clone --local'. Signed-off-by: Erik Skultety Reviewed-by: Daniel P. Berrang=C3=A9 --- ci/helper | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/helper b/ci/helper index 2a51ce1786..d704d1f711 100755 --- a/ci/helper +++ b/ci/helper @@ -211,6 +211,10 @@ class Application: if pty.spawn(["make"] + args) !=3D 0: sys.exit("error: 'make' failed") =20 + @staticmethod + def _prepare_repo_copy(repo, dest): + return repo.clone(dest, local=3DTrue) + def _lcitool_run(self, args): output =3D subprocess.check_output([self._args.lcitool] + args) return output.decode("utf-8") --=20 2.41.0