From nobody Mon Feb 9 02:51:58 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1674227225; cv=none; d=zohomail.com; s=zohoarc; b=Fo5Fn3ZJ+RSxLQJUzERkl6816Xwuca0ttw2VUWlDOSR8E52jNzMX+rIvZWxvYsVIafhzmprjk4twmV0YUAIj2ePp44vI0XcYRWgB/OH+EsWLlM0MD/xKBiFtLdRtbExlm/OftG6uwdDqOX6peBj5jsKn55AKUcDTfYcfPt3Qai0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674227225; 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=FWOYY4FqkLzjvOsWttHsnoCSE58sHCS5ZYAZW1vthMc=; b=CN209OcGvJYTILvvyt7TxXCHHWYH6kVEw4Mi4qkc6HdYrlJw973Nh6Wunzu5oK3EsVIoBcFRyF8tHpA5BwsFCh3LPiGSE2H3fBmJfTCPP0IY1LPMVW3fEBqkwkvAAISWPl6StyswAt+l4rADyVeOXDbRVJw6e3LrR9xIA1nQ6tQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1674227225877746.4898669276898; Fri, 20 Jan 2023 07:07:05 -0800 (PST) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [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-333-gyrABlUpMgSQKbhX7scOWw-1; Fri, 20 Jan 2023 10:06:19 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5E5653815F90; Fri, 20 Jan 2023 15:06:14 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4C409C15BAD; Fri, 20 Jan 2023 15:06:14 +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 2231B194704E; Fri, 20 Jan 2023 15:06:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 6037A1946A7B for ; Fri, 20 Jan 2023 15:06:10 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 43BB82166B2C; Fri, 20 Jan 2023 15:06:10 +0000 (UTC) Received: from ridgehead.home.lan (ovpn-193-170.brq.redhat.com [10.40.193.170]) by smtp.corp.redhat.com (Postfix) with ESMTP id A72BC2166B2B; Fri, 20 Jan 2023 15:06:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674227224; 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=FWOYY4FqkLzjvOsWttHsnoCSE58sHCS5ZYAZW1vthMc=; b=Ze1oAjcUSkgUc++XpkOJgdVNu+ARZA8oBZWwimAR7g+DnGlx4Mzkflep5Kc/jhTiqQ+Htu Z3oux3lJWy+vqSyrMse/+4NDvL3+BbPxVN9O3HIqFQzRfXbAO8tSN/goow/uN9SUgmN/Zn 8zdXOKQyikX6mvb1RhSkDUGp54vN5z8= X-MC-Unique: gyrABlUpMgSQKbhX7scOWw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH 7/7] ci: integration.sh: Define the SCRATCH_DIR variable for local execution Date: Fri, 20 Jan 2023 16:06:03 +0100 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 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.8 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: 1674227226765100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Running outside of GitLab will likely not have the variable set and hence the execution would fail. Signed-off-by: Erik Skultety --- ci/integration.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ci/integration.sh b/ci/integration.sh index 41326d6e40..ac04c46d8e 100644 --- a/ci/integration.sh +++ b/ci/integration.sh @@ -37,6 +37,14 @@ virsh net-start default &>/dev/null || true # END AS ROOT exit =20 +# If we're running outside of GitLab, this variable will likely not exist,= so +# we need to define it and create the scratch directory +if [ -z "$SCRATCH_DIR" ] +then + SCRATCH_DIR=3D"/tmp/scratch" + mkdir "$SCRATCH_DIR" 2>/dev/null +fi + cd "$SCRATCH_DIR" git clone --depth 1 https://gitlab.com/libvirt/libvirt-tck.git cd libvirt-tck --=20 2.39.0