From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OMQBNDdSeWH4dAEAgWs5BA (envelope-from ) for ; Wed, 27 Oct 2021 15:20:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iJ6uLzdSeWEeCQAAB5/wlQ (envelope-from ) for ; Wed, 27 Oct 2021 13:20:55 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 0060013CAF for ; Wed, 27 Oct 2021 15:20:55 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id E30341F596; Wed, 27 Oct 2021 09:20:50 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 2485D1F590 for ; Wed, 27 Oct 2021 09:20:48 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id DE9845FC42; Wed, 27 Oct 2021 09:20:47 -0400 (EDT) Received: (nullmailer pid 3652974 invoked by uid 1000); Wed, 27 Oct 2021 13:20:46 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH] test/libconfig: use 'export' when restoring NOTMUCH_CONFIG Date: Wed, 27 Oct 2021 10:20:40 -0300 Message-Id: <20211027132040.3652962-1-david@tethera.net> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Message-ID-Hash: ZCJ5TZMEQWQZ2XKQ4AVZRYTYHCOJBHS2 X-Message-ID-Hash: ZCJ5TZMEQWQZ2XKQ4AVZRYTYHCOJBHS2 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635340855; 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=eo/Vv+34GvtYIWTd4IA1KkJKzaJViytN8QAjJYxNL7M=; b=pC5d03PLfjUlQeCx/vCBrhH77V+vX31F0zJNNi7NIMIeJCCIUnzDko2/oppte69Px5Jt2D 7/OWCPmiOHmHVVP00/PuN7JJN2p+0TYT+Sce+yySYG3r+czvJyvoIg9376FSfT2aUI0PZq MqpBnyTNyRwKYrM5NNtE2FFcygxG9xYk6GOnud8ybAeCC1ShwqGEZXQNr5NMHdNTHXxMYL HT9IA/TtXLYZBVME/ApC+6H+zsWGihObfNDuqC2kdAu835UG8mEOmjsCrdshNfirxl7LXm m2YV3r28uouTL2bde9tPVM1vwK9N7mwUYzaTV7XpBUJs+LDJEuoz+KysCdrGdg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635340855; a=rsa-sha256; cv=none; b=E4FNdJbLSGDkm0kxBUcQmC4Uwf3c3Fq5WYbGARy1x5jP/Dw5HmUlOq9UIznn6DWXTFg2o0 5lc5cCeWjNEnn70RcmClWr3qRIqqlgMLb3eidxKnm/my4LK8unRwuFjcYLylRQF5/7hj2B z60Rcn/4C9DYWzDZ+5hR/G+wlr0bFvjsgtKk6Bhsybjkc6c38RimHccHiGB/7tUSdH/npY G7yqW7KwkPOuh3FVTfN/IdODtzNqVwSXS4/fHqTc+/f8TC/H1rkBL/K7lAbFzbVl4gJCis myPtMFHrQV/v1LW1+cAe1zfGvOcX7ef9BjPw1M/dE3zoOICmEXZL95J4DrrL6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 0060013CAF X-Spam-Score: -0.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: xKwI90k+W5tq This is required when NOTMUCH_CONFIG has been unset, and is harmless otherwise. --- test/T590-libconfig.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/T590-libconfig.sh b/test/T590-libconfig.sh index 59b82a6f..a9566c13 100755 --- a/test/T590-libconfig.sh +++ b/test/T590-libconfig.sh @@ -461,7 +461,7 @@ cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} %NULL% %NULL% } EOF rm -f ${ovconfig} -NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} +export NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} cat <<'EOF' >EXPECTED == stdout == test.key1 = overridden-home @@ -488,7 +488,7 @@ cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} %NULL% %NULL% } EOF rm -f ${ovconfig} -NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} +export NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} cat <<'EOF' >EXPECTED == stdout == test.key1 = overridden-xdg @@ -515,7 +515,7 @@ cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} %NULL% work } EOF rm -f ${ovconfig} -NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} +export NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} cat <<'EOF' >EXPECTED == stdout == test.key1 = overridden-xdg-profile @@ -541,7 +541,7 @@ cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} %NULL% work } EOF #rm -f ${ovconfig} -NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} +export NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} cat <<'EOF' >EXPECTED == stdout == test.key1 = overridden-profile @@ -559,7 +559,7 @@ cat c_head - c_tail <<'EOF' | test_C %NULL% '' %NULL% printf("NOT RUN"); } EOF -NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} +export NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} cat <<'EOF' >EXPECTED == stdout == == stderr == @@ -604,7 +604,7 @@ cat c_head - c_tail <<'EOF' | test_C %NULL% '' %NULL% printf("test.key2 = %s\n", val); } EOF -NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} +export NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} unset NOTMUCH_DATABASE cat <<'EOF' >EXPECTED == stdout == @@ -783,7 +783,7 @@ cat c_head2 - c_tail <<'EOF' | test_C ${MAIL_DIR} %NULL% %NULL% } EOF rm -f ${ovconfig} -NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} +export NOTMUCH_CONFIG=${old_NOTMUCH_CONFIG} cat <<'EOF' >EXPECTED == stdout == test.key1 = overridden-home -- 2.33.0