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 0BPfGdcZPmLhBQAAgWs5BA (envelope-from ) for ; Fri, 25 Mar 2022 20:36:55 +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 sGWDFtcZPmJxXQEAauVa8A (envelope-from ) for ; Fri, 25 Mar 2022 20:36:55 +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 0667D2DF2 for ; Fri, 25 Mar 2022 20:36:55 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 030C05F72A; Fri, 25 Mar 2022 19:36:53 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3232C5F6C5 for ; Fri, 25 Mar 2022 19:36:51 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1000) id A33575FBD7; Fri, 25 Mar 2022 15:36:50 -0400 (EDT) From: David Bremner To: Mohsin Kaleem , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: add new option notmuch-search-exclude In-Reply-To: <87k0clhgw6.fsf@kisara.moe> References: <20211128200207.3455217-1-mohkale@kisara.moe> <8735mij0yo.fsf@tethera.net> <87pmme86cm.fsf@kisara.moe> <8735j9aj4u.fsf@tethera.net> <87wngl4w2n.fsf@kisara.moe> <87zglh92ry.fsf@tethera.net> <87o81xhhto.fsf@kisara.moe> <87v8w591v2.fsf@tethera.net> <87k0clhgw6.fsf@kisara.moe> Date: Fri, 25 Mar 2022 15:36:50 -0400 Message-ID: <87pmm9n7sd.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: GY5Y7RBUDNRGBPOCS2AJU4LTSSVW4FJX X-Message-ID-Hash: GY5Y7RBUDNRGBPOCS2AJU4LTSSVW4FJX X-MailFrom: david@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=1648237015; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=yw4N4o2L8IzBXX1z21/0QeqSFjgBOjU/d5p8gqDBzT4=; b=CIc1GriG1jVLFW6SSmRcsjpm1HHwA8eZOMegeTuoJQi0kD/uyRQ6L/qCWeMFxHcF+/YSpi y4aWuk090jHw2XTmLoElm84RRNQMyU9mOsvGFJVTTHZ9UyTETesZ19yVqAciCbTavpzI2E pY8FmROzMRCUDqtXVzFLPakCclZOcKyRW3whYROeDqPL6XwDhVT8b46GnvbOrjiyaWTqzx s1/3wa9eZpyYnTcT1x5HM3ZKcF3mI6dK6c6DcExnVHyikmRmWlsOZshDGHHeAcls1rzPi+ 4Hfb9BmjDoY1qO8zeAImFzrxAchiPYZgtohN8GPi5bebFX+VU6u20imCRLBkOA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648237015; a=rsa-sha256; cv=none; b=dzZqifd1BICkFNK9gqnLmM9stPA1cAqTfcsVvk1PQAhSYaV7WmsFv6sYlsadW4grygdbH5 SovYbWeUuUfZZ6dPP2J69pPJ7ew5IDu7MRKX40g4h/KjZlO9l9TC+ssBx8L3ZyMCLkboih UbPyAWkJ/jKogLLAudAMfmha28M9MGW1PgIahop5lROicaof0MCLFHOUURuvq7qTzw1IXv YR0CjLa8uu0D1YnPG56O68Q2fr6TOU6nh3AL+X8yeHJRwfN6r7GUQtUOkn9PbBRK1Vne2O LoYq8rxwAKGZeDc7G2QWKOHJI84/pokDDNBVyB5XoUPcayThb49VU9UEvCXlbQ== 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: -1.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: 0667D2DF2 X-Spam-Score: -1.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: hDNNhTPyfBEG Mohsin Kaleem writes: > David Bremner writes: > >> Try adding a line >> "unset XDG_DATA_HOME" >> >> after >> >> unset XDG_CONFIG_HOME >> >> on line 108 of test/test-lib.sh > > Doesn't seem to be such a line in test/test-lib.sh, but I added it to > test/test-vars.sh and we're down from 42 failing tests to 4 :-). Ah right, I was looking at an old version. > > T391-python-cffi: Testing python bindings (pytest) > FAIL python cffi tests (NOTMUCH_CONFIG set) > (cd /home/mohkale/prog/repos/notmuch/bindings/python-cffi/build/stage && python3 -m pytest --verbose --log-file=/home/mohkale/prog/repos/notmuch/test/tmp.T391-python-cffi/test.output) > /usr/bin/python3: No module named pytest > FAIL python cffi tests (NOTMUCH_CONFIG unset) > (cd /home/mohkale/prog/repos/notmuch/bindings/python-cffi/build/stage && python3 -m pytest --verbose --log-file=/home/mohkale/prog/repos/notmuch/test/tmp.T391-python-cffi/test.output) So does "python3 -m pytest" work for you? Assuming yes, is there some special environment needed? We don't explicitly unset PYTHONPATH in T391, so in if you need PYTHONPATH to locate pytest, that should work here as well. What output do you get from "python3 -c 'import pytest; print(pytest.__file__)'" > T560-lib-error: Testing error reporting for library > FAIL Open null pointer > --- T560-lib-error.2.EXPECTED 2022-03-22 20:25:30.496475869 +0000 > +++ T560-lib-error.2.OUTPUT 2022-03-22 20:25:30.496475869 +0000 > @@ -1,3 +1,2 @@ > == stdout == > == stderr == > -Error: could not locate database. > test1.c: In function 'main': > test1.c:7:5: warning: 'notmuch_database_open' is deprecated: function deprecated as of libnotmuch 5.4 [-Wdeprecated-declarations] > 7 | stat = notmuch_database_open (NULL, 0, 0); > | ^~~~ > In file included from test1.c:2: > /home/mohkale/prog/repos/notmuch/lib/notmuch.h:332:1: note: declared here > 332 | notmuch_database_open (const char *path, > | ^~~~~~~~~~~~~~~~~~~~~ > FAIL create NULL path > --- T560-lib-error.6.EXPECTED 2022-03-22 20:25:31.093160154 +0000 > +++ T560-lib-error.6.OUTPUT 2022-03-22 20:25:31.093160154 +0000 > @@ -1,3 +1,3 @@ > == stdout == > == stderr == > -Error: could not locate database. > +Error: Cannot open database at CWD/home/.local/share/notmuch/default: No such file or directory. I can duplicate this if I have a setting for MAILDIR in the environment. I will send a patch clearing XDG_DATA_HOME and MAILDIR, but for now you could add "unset MAILDIR" to test/test-vars.sh