From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SNYmJO1aumSnWgAASxT56A (envelope-from ) for ; Fri, 21 Jul 2023 12:16:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aPAFJO1aumQrlQAA9RJhRA (envelope-from ) for ; Fri, 21 Jul 2023 12:16:13 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3DFA33C6B5 for ; Fri, 21 Jul 2023 12:16:13 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=Imhja58J; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689934573; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=e0YbUa2SeJOKVtVtys+fSsjwyUYwANButCuqubW2nlk=; b=qfCazqW+YHanzviESYNceFLw7OLA6HuAxmKe+kuzHM114Y55oo3W3gcQYFRHVW0EKKiV96 8jPeYemLAgvuJFhtyY4oWSd+d5xCi+4YFzJ+4XDbcA9AI4p93oeTkB0z+vCULfXBYB/deq fr26oQK1CrLoWrLIift+A0R8R1GA89atTSu4mv4RYMH6QzavkfuVAIgO/3TD7bDXcM1LGV O5Fvrdy3sFIwxo1GhdjK63WS8DBoYM2Y+Sv6H6psp2n16yw1RJX5ht/qvKfPNsR50glVxW c8Rg5VDokKCkkqLoxZ/xXkh4IN20IgkWlXkGEWHNr7vF4OP4J2Ioy4Nnn3+uTA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689934573; a=rsa-sha256; cv=none; b=FLSOynffZdjWtnXrSx8UtUkNloQjZ4nua1hPW0vD5WFV0KyGMeNcK6IupI0YeV+axMFc9N t0LK0OuoukcEY+B+WQR5qutuEasifQ8zGGUZ2b6v9mRzIW338tcqC6U//nXRbg9prAXbrb j2dUwl1c6myfCPYUDVNY7Z55uFol5W31hl7nwmK/WW8vHqceCqFZzDxsi1Lxr9l2RkU0sz 64rU46RKPtAdA7iaRQUA8EwEPNNk8RTP2pwCVx0qiTcs5Nl8I2VCm4hb/l3us0ABXRobEL hpXN0J9o0nO7BrXsmRNIxFTqnXhCM6CAJDvBgyKaO4NhYoftq5VR+K/obqAMCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=Imhja58J; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMnBB-0000qe-He; Fri, 21 Jul 2023 06:16:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMnB8-0000pf-Me for bug-guix@gnu.org; Fri, 21 Jul 2023 06:16:07 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qMnB5-0004cI-1y for bug-guix@gnu.org; Fri, 21 Jul 2023 06:16:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMnB4-0001Sw-UG for bug-guix@gnu.org; Fri, 21 Jul 2023 06:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64760: [PATCH 2/3] tests: store-roots: Initial gc-roots should be empty. Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 21 Jul 2023 10:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64760 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Josselin Poiret , Janneke Nieuwenhuizen , 64760@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 64760-submit@debbugs.gnu.org id=B64760.16899345075522 (code B ref 64760); Fri, 21 Jul 2023 10:16:02 +0000 Received: (at 64760) by debbugs.gnu.org; 21 Jul 2023 10:15:07 +0000 Received: from localhost ([127.0.0.1]:60586 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMnAB-0001R0-Af for submit@debbugs.gnu.org; Fri, 21 Jul 2023 06:15:07 -0400 Received: from jpoiret.xyz ([206.189.101.64]:48972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMnA7-0001Qh-BK for 64760@debbugs.gnu.org; Fri, 21 Jul 2023 06:15:03 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 2FC4B185420; Fri, 21 Jul 2023 10:15:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1689934502; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e0YbUa2SeJOKVtVtys+fSsjwyUYwANButCuqubW2nlk=; b=Imhja58JbPVt5MV4KI+++lL2KJzfkAzf/+va/vsSa+gk3EldQ1q5U3JTPcokeAh0NOOXOR sV/lRSYhMX6vYdLXT7l2Cw+qtUypf+kDCOeq+IVC3psgwP5uLVgJOOl7Giq7MQeFr+lUk5 KJMl7bAFxqo2U042MBxZ2Wu3fNhnJdILCWDDqVF4gwnNBbBTnqEm2emmEzo+eFQ7Stggfh iLA61p3pEE7PbU2BpqDacWRJzG/deqiThtA3vonNlLRhx2BynDa8PMKCEiWuKTVB3Bm8R4 L88c7DsWJ6bJDlcOWUGl3TK5XEaZ3K+SBhHgg7CjEguDI26Z5Utb6AmbxZ8BaQ== Date: Fri, 21 Jul 2023 12:14:58 +0200 Message-Id: In-Reply-To: <877cqtfu95.fsf@jpoiret.xyz> References: <877cqtfu95.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: / X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Josselin Poiret From: Josselin Poiret via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.66 X-Spam-Score: -3.66 X-Migadu-Queue-Id: 3DFA33C6B5 X-Migadu-Scanner: mx1.migadu.com X-TUID: gzL58pYaUraX From: Josselin Poiret * tests/store-roots.scm ("gc-roots, initial"): Set expected result to empty. Also do not error out if /profiles doesn't exist. --- tests/store-roots.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/store-roots.scm b/tests/store-roots.scm index 9877987a65..d82a29e313 100644 --- a/tests/store-roots.scm +++ b/tests/store-roots.scm @@ -31,10 +31,11 @@ (define %store #f) (test-begin "store-roots") (test-equal "gc-roots, initial" - (list (string-append %state-directory "/profiles")) + '() (begin ;; 'gc-roots' should gracefully handle lack of that directory. - (delete-file-recursively (string-append %state-directory "/profiles")) + (false-if-exception + (delete-file-recursively (string-append %state-directory "/profiles"))) (gc-roots))) ;; The 'open-connection' call below gets guix-daemon to create -- 2.40.1