From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KBKMOSyZt2QPKgAASxT56A (envelope-from ) for ; Wed, 19 Jul 2023 10:05:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wHJcOSyZt2SvhQEAauVa8A (envelope-from ) for ; Wed, 19 Jul 2023 10:05:00 +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 B67774C3BC for ; Wed, 19 Jul 2023 10:05:00 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=AxN10aP5; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689753900; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=u5/U+4ns+uoND7flilmScII8zGBjk+sNAs51HHDGaps=; b=aYN1ulA2J7nI5KODUc4IW71tmdArXshF/YCAOERw9xFH9dFhPaVPAcdBbMNYMSwSUkCNRi B84hHI3PwtMaB7DO6egqmt9DCDPDU1Wtf49AVsYSqgAaPEHZggYB79ngGizO8wMGTUMuFL FabBNqMvYAKj9Z1gEoLYyGUE+vBQvqtKc8Pim92pXFU6qM4WmXpE1h6fmoeP8jGzzAQGgg yZ9Xd7NFDdnPoiJuMDNf9Ttcbo9heSHhtuB04mWKL8uQmggt6oVk6PHcE+ENoXSRgtudxp l7E/fnw5JUyrxwDzryt7kMdW1CIYgYXCW2gwz/RxcQYuzEEPKo+eb/6Pu+KkjA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689753900; a=rsa-sha256; cv=none; b=kmxgJm41PTophbkQDIBM2EyoPae4m2orDXgiMfDBQcryTkB6+kQEWQA/rFfcJ+AKmhbwqh zb7OwB2WLRJP3no8OEQ8Kps/TsTilBn6zj2MHumu5pQuJrxKy1eVqQGLPLmg7GtNU1y2iG YkEuAMdZiXkwjounCfsLycwcAj0HukDnA0L3+XSQZLhD44mq+ItKnsRqm6SxL+chfTFoug xFMWu7i5IXVtG9T0+VIjl3KLY1jwjLZS5xjomWDRBFUprvs45DfnGHmv7WwFd6TtbZUSKc JeSgHEFncrLiuVpdcoSK57y0QBP5W6LZdtEV0or7MUfF2v+XAkgqtpgNL9WdHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=AxN10aP5; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qM2AJ-0003Ae-NA; Wed, 19 Jul 2023 04:04:07 -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 1qM2AF-0003AO-8e for emacs-orgmode@gnu.org; Wed, 19 Jul 2023 04:04:03 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qM2AD-00006y-23 for emacs-orgmode@gnu.org; Wed, 19 Jul 2023 04:04:02 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9FF97240028 for ; Wed, 19 Jul 2023 10:03:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1689753837; bh=bqhW34GfS5sBwzGKRlphhFwvycJxOo9zruIYnrb3A8c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=AxN10aP5Pwuo9yzmpjIrnbKYMpu4ayUEI4wdbrWISEPWSd1wkFbKmRz4sd5HDfo21 /Dw/VIrhnXEZnVzmwQprKUbyUJVEAldW8EbGmpQYEdqHFJyiL5r1mCfWKohEfgV4sc k3fyy42NZhlFK7EUraTYSyT++k6Jgn5xX7MjP9gwqZPFmoMiRbVcF+dwy5ImPe1RZK tUk4g7Yz1PB0QWNSMM7dzS+ogfJ80XdsONBCdS0J76dzRMgbyUS8mwEWGyfQdYNjk6 Nsj8WLvCovKN223pcTz61Ba3o6Q4+UsbJwAQNBBnbSYiqjEYGWKilFw2NsY7EIOBa0 gX2UHI0ZvIi2g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R5Sy46XCrz9rxG; Wed, 19 Jul 2023 10:03:56 +0200 (CEST) From: Ihor Radchenko To: Morgan Smith Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Testing: Ensure 'org-id-locations-file' is set before updating In-Reply-To: References: Date: Wed, 19 Jul 2023 08:04:07 +0000 Message-ID: <87cz0omio8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -9.32 X-Spam-Score: -9.32 X-Migadu-Queue-Id: B67774C3BC X-TUID: 5jQs7+yZ978z Morgan Smith writes: > Previously, when trying to run the tests in a container limited to the > org repository, it fails because it can't create the directory > "~/.emacs.d/.org-id-locations". > > * testing/org-test.el (org-test-load): Move setting > 'org-id-locations-file' from here ... > org-test-update-id-locations: ... to here > --- > > Hello! This fix allows me to run the tests without giving it access to the > filesystem outside of the repository. I have no clue what org-id-locations are > and I'm hoping someone else does so I don't have to learn. I'm not sure if > this is the best fix, but it works. The whole (defconst org-test-dir (expand-file-name (file-name-directory (or load-file-name buffer-file-name)))) is fishy when users attempt to run tests from normal Emacs session. If you had issues with this variable from batch invocation, something should be fixed in the defconst, I think. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at