From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ME8jF/8XPmJFDQAAgWs5BA (envelope-from ) for ; Fri, 25 Mar 2022 20:29:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KFToE/8XPmJNLgEAauVa8A (envelope-from ) for ; Fri, 25 Mar 2022 20:29:03 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2895C2934 for ; Fri, 25 Mar 2022 20:29:03 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2A4425F72A; Fri, 25 Mar 2022 19:29:01 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id CA0305F6C5 for ; Fri, 25 Mar 2022 19:28:58 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 27A0C5FBD7; Fri, 25 Mar 2022 15:28:58 -0400 (EDT) Received: (nullmailer pid 218975 invoked by uid 1000); Fri, 25 Mar 2022 19:11:33 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH] test: unset XDG_DATA_HOME and MAILDIR for tests. Date: Fri, 25 Mar 2022 13:11:25 -0600 Message-Id: <20220325191125.218880-1-david@tethera.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Message-ID-Hash: ZZHAMZPYRL74RCOW7CXP77KACTAPQCOG X-Message-ID-Hash: ZZHAMZPYRL74RCOW7CXP77KACTAPQCOG X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648236543; h=from:from: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:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=0TfyQu6zS8qCC9JwaP/ZCJBamrm3TdiUyldZr2aqcAI=; b=oR8P4gfRXjj/aIY/6mcd1UMLzv+fjZoDZAN46K5CJJyRUGhvteY0nUEcpp9NRm94VkOCyV Iwdb3y/hI/9XMl2Z5BRh0mTBC6vgRgGk/WCWx+RDF1F5ahGjwWZed/2ZVemmAUgXq5fM6W j/Oj2YnNgilwDHpyXzUII1GNuZT9vs1K+Qd4O3CmzHcEl/+OKIyy8DEeMw3GJmDRNl32Xl KRDbsqLypcy2XOdB3Bch5QDWxuAINrEu6YupUZiawGdOXWfSgnabElPZ5HbZwIxLZMu6M4 zbrguSA3TXcsJEd+LUkmAboMJHyEB+gjRGokGgaJ8tZK6H8THBoc1ThcvOZ/tQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648236543; a=rsa-sha256; cv=none; b=k3RRtgQTJ1pJznnVDwYiHGsV2ZkhDZeIJfiiVAtaEZrZY4S9XwbG3Wl0Df6WLIfoS05YVZ 1vUFFeUY9Mg9y+KZbaoeiPd2kk1QGRpQJ++k21rokBks9zHF+p1gjHLRICCqNpeduzeH0r ECU4A2xYvuw4la3MtjUJA0ZfCzVt/HAEvGIu0Sn+dTQhkTyKKagYKYm6c4y1XM3XR5f5Mb +oZnZuypkqUO9J4EW6h0b1ZflVf5c8qfVIevjWBPb+ONgFh4gywAvXLY2rv9gGmzesViKj nlVaIeP9hOeFI0SV3NX4GfPRlw1WD5QDpvDZfEpp+wFw1z+wJOTj5e0y/vHJvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.16 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 2895C2934 X-Spam-Score: -0.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: ro7Gh+xwhk6w The some of the tests (and the library functions they exercise) that rely on XDG_CONFIG_HOME also check XDG_DATA_HOME and MAILDIR. --- test/test-vars.sh | 4 ++++ 1 file changed, 4 insertions(+) this obsoletes the version that only unset XDG_DATA_HOME diff --git a/test/test-vars.sh b/test/test-vars.sh index 812bcf81..02d60f89 100644 --- a/test/test-vars.sh +++ b/test/test-vars.sh @@ -44,6 +44,10 @@ unset GREP_OPTIONS # For lib/open.cc:_load_key_file unset XDG_CONFIG_HOME +# for lib/open.cc:_choose_database_path +unset XDG_DATA_HOME +unset MAILDIR + # For emacsclient unset ALTERNATE_EDITOR -- 2.35.1