From nobody Tue Feb 10 12:57:34 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=1677689700; cv=none; d=zohomail.com; s=zohoarc; b=OkkUGkrehdE0Hlu1dILUQ1jve0mOEMmuNVGSIs42vM6XFUTkdeO3CXf5ZfudJ142zfJJN6h886kCPjCuJuc0/VuFKJufrCJGHRlrIjVvJhw5yW+uKHcF6aHAyjvU95Scjv+hZgfqbmf8y7KVgZyxUgUrL3jNJgfWRSKtnyGxPr4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677689700; 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=/0xWOXfFHhduRF47y7lUw2tZdOrTDOQn911mgTWLjd8=; b=UbtWjvuCAYPPgoCzw9MViYa/A1Yzv5yoiJwiEnXSjGQQ2Ccuu3LnnelvRZhf1Xvl+MThKFvAZRCsbKqrQVidT6t1uugCJ9jS4QabI/D0KtCjRKvzfgDyQn4cJ2MKSJHhNjt1LczqR2K7Da9fSNsL4D56UMXESpToRp0D8ZixeT0= 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 1677689700001835.6569197625782; Wed, 1 Mar 2023 08:55:00 -0800 (PST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-84-duETgftIOMazSFN6orDXGw-1; Wed, 01 Mar 2023 11:54:56 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1C96185D066; Wed, 1 Mar 2023 16:54:53 +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 096052166B2B; Wed, 1 Mar 2023 16:54:53 +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 E43A919465A4; Wed, 1 Mar 2023 16:54:52 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id C212D1946A66 for ; Wed, 1 Mar 2023 16:54:51 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id A82BC492C14; Wed, 1 Mar 2023 16:54:51 +0000 (UTC) Received: from harajuku.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.45.224.144]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3E223492C18 for ; Wed, 1 Mar 2023 16:54:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677689699; 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=/0xWOXfFHhduRF47y7lUw2tZdOrTDOQn911mgTWLjd8=; b=FRHkySoD4ASPKZROyeY9WFXsP4J5x3C+QzLKe0M7RzLKCrlN8C410yx27bFUxoiDcHHYR4 BHEDtS0Ca3liEtSfm6SPIYS9RpHVxPGXsbXqVfVqcEqHDNTAk3afHjgfflkxZdHmf3jAiQ +YDtYopW6pUEkeMZk5XEO3cuY/mADVc= X-MC-Unique: duETgftIOMazSFN6orDXGw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 4/4] tests: Print fakerootdir when it's preserved Date: Wed, 1 Mar 2023 17:54:46 +0100 Message-Id: <20230301165446.598069-5-abologna@redhat.com> In-Reply-To: <20230301165446.598069-1-abologna@redhat.com> References: <20230301165446.598069-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 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: 1677689700766100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Setting the LIBVIRT_SKIP_CLEANUP environment variable results in the contents of fakerootdir being preserved for inspection. Be more helpful towards the developer and print out the path in this case. Signed-off-by: Andrea Bolognani --- tests/testutils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/testutils.c b/tests/testutils.c index e717895fbf..e8cb8e6737 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -790,6 +790,8 @@ virTestFakeRootDirCleanup(char *fakerootdir) =20 if (!g_getenv("LIBVIRT_SKIP_CLEANUP")) virFileDeleteTree(fakerootdir); + else + fprintf(stderr, "Test data ready for inspection: %s\n", fakerootdi= r); } =20 int virTestMain(int argc, --=20 2.39.2