From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 kMbIF4/CtmQITQEASxT56A (envelope-from ) for ; Tue, 18 Jul 2023 18:49:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oPLiFo/CtmT/QAEAG6o9tA (envelope-from ) for ; Tue, 18 Jul 2023 18:49:19 +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 188674701A for ; Tue, 18 Jul 2023 18:49:19 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="BA/Z2NVH"; 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=outlook.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689698959; h=from:from:sender:sender: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-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1RXlZmcBzcbhhEAnxtghvE8Wia8FTBQDkYsuJRSvpgk=; b=agZaLx6MshrFqQy3C7yRhtyTM4UBnZEi0Gq7rFyZTrTlzHIhiYjshRfoJsCMzvoQ1+V1Cx +SDW8/8uktxYRKN502I/UcoO5WZeBQ6lopPO0rVn1HYfMC8pQZ6kT6RUcmfko0kEZNZTTq /pNL7S1ct5wV+z0zR2ieCq/Ml/beydO0H5tSD9i/PeyCsGF1SncUYZRD7S09BOh04Jwzgh L6FmbrKP0FiX7CcB9WU5m+lf8giJxuAcrRJES5dbWOUxKRlOJdqa8ry5zIQNf2XOWCQLCB emZSGMfDdhbvANxkY9bNMufiGe1X9YKaxmIRdCtcdz3+AT0oz0jky8DFoRc66Q== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1689698959; a=rsa-sha256; cv=pass; b=HJRISgQXPezEphMrRIqjI8KssV2LoPWuRKjptjMIBIt0LfeKXIJ5qSS5HfELQTZutUT/Cs 1rXLTVZNlWKYfMYq7my6R4cpDY+R5ydTWMs0Yfg9HpxuV4F5VhmHvq4ldejGplYH1YgKK9 kSRhck5Q0bXCWgdRny21txVRD/yl+OIGyEsXGE7NLNvs7497Fhw9pSnOC2mcu9D7o7gONs vNB036eA+aLSJEWOuqaca+XAul17+wN6XdTCXzZegDZ86dyg/03rqbuZMILCZVpjYIlicf 2qrafShWrFCCMFhUiiyoH/2BKW3SBxF3jrC/u7wk9U/EpRVZxFc6kumwpS88yw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b="BA/Z2NVH"; 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=outlook.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qLnsC-0002sN-WF; Tue, 18 Jul 2023 12:48:29 -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 1qLnsB-0002sF-Ag for emacs-orgmode@gnu.org; Tue, 18 Jul 2023 12:48:27 -0400 Received: from mail-dm6nam04olkn20830.outbound.protection.outlook.com ([2a01:111:f400:7e8b::830] helo=NAM04-DM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qLns9-000665-3I for emacs-orgmode@gnu.org; Tue, 18 Jul 2023 12:48:27 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SoL2DC0iRkoEB1oG5MpJPS83mb39OPho4uYbriZ4v1cPH0sapes+2qM17uVshpC5O6RLypIxxivf6ZO/1vpG9O4nvg8JcmcnAGKasjh+Vei4TRp8wTJ+3r7hsP6wbTTEjNzdgOi3podz76VlbcJ7NmfF8uaUhzFShe6MYIrlKCr+RhN+8rqN1OhiygZiwzd/ndLQGMFHOJvbIeqvQHfpHNLH6mMtq0Km4sJAlI4g/xITTNgC0P6EBlacsuJ2OLlW1q57C+GokSDQWjTHjxwbONBAg4WKYTMFNdt7/1JhftWzzgRsq2WZiCPdZQCOmwNsR9cfGzQnlc1e0Wgvo4urDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1RXlZmcBzcbhhEAnxtghvE8Wia8FTBQDkYsuJRSvpgk=; b=oK6uDtZj954eli8inSwdBToX1/paCi3ILLlSPkRdAzqraFItwXiwwx+dRTXxWCFMXLIFAd7AxIjwddb/GriMq+/Ep98ll2rmrh+HTP3ez53CTrBWwLuOhNNdWVSRbnHOeb6SU5uxWlsh2z5+YizUJ4WqjADmbMJnaQ0PrcOiwhZL32JdsYpIPj7AZi4rhMpfk7N+cJ5a5YxfX4qGVA9oKJZb5TG0BYEG8xKsFIOyCgV5/OFwoy9ZEVBDUX5d5eKeWkQWGr5Tjv6EeZ6TU17T8gS7iVXvOqwfe0EgxShKLKNnLtOiWQvxe9HyoX/1llf92R0Jt9DeIr4VliGPyv/poQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1RXlZmcBzcbhhEAnxtghvE8Wia8FTBQDkYsuJRSvpgk=; b=BA/Z2NVHlnoKcyPZZcfdDC13V4o3vzmwTnPft10sXy3X48jd0rx7DieseMp9iex5VCrwMTByyn7lTg6QjhUHoKV1zzfMFKpfA1r3ZGBn9HHBBHZeWO0yCK1kxQxwhpUwYAivcI8gxCIn7TMJTasc0zFjF4394CRsEBOwpQ2sduwqQnYYjrMA261CKyaXLiHOfIPs+CBzxnW0MO/1lJ94ai9WvLo2mH0gEIK7vAeek9QJy1nfPcRNk4tZ0aDF8WtURZ2ySFSbheGT4+kliNDWD6MeMXcivnrDOJwOyuHs/A4ZlWTdTmElx7jjP4jTY4PKw5w9PHasw3qiiWc5+m+SOA== Received: from DM5PR03MB3163.namprd03.prod.outlook.com (2603:10b6:4:40::24) by PH7PR03MB7108.namprd03.prod.outlook.com (2603:10b6:510:2b0::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.28; Tue, 18 Jul 2023 16:43:21 +0000 Received: from DM5PR03MB3163.namprd03.prod.outlook.com ([fe80::b2fc:59fe:bb07:4d95]) by DM5PR03MB3163.namprd03.prod.outlook.com ([fe80::b2fc:59fe:bb07:4d95%4]) with mapi id 15.20.6588.031; Tue, 18 Jul 2023 16:43:20 +0000 From: Morgan Smith To: emacs-orgmode@gnu.org Subject: [PATCH] Testing: Ensure 'org-id-locations-file' is set before updating Date: Tue, 18 Jul 2023 12:40:16 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [6d58SCR/5RtHUpSops0OdEqkNUUABKKj] X-ClientProxiedBy: YT4PR01CA0334.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:10a::16) To DM5PR03MB3163.namprd03.prod.outlook.com (2603:10b6:4:40::24) X-Microsoft-Original-Message-ID: <20230718164015.18187-2-Morgan.J.Smith@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR03MB3163:EE_|PH7PR03MB7108:EE_ X-MS-Office365-Filtering-Correlation-Id: 690d62b5-39b2-47fa-8ce9-08db87ae180d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5COb5v3kZ1PODPdK33w0Xjc8cutqNSYEe30e68aR3MjrHPENEKrUZwKP2pVFE5BQ4D+ONSzVG4fdv8eAtv63/2+67N1bhnPzfWR6WkUqxINDg3K3Z3SZJUeVsFXi8ISJA8Y22uihwYllxTUxn40kbQW9dIThkLjd0mfcn2n1zBRChZ/kwP25d3JMbm2QyIBianib15sVzOSXqMWaYvYYfw4SP+kB4RM5PL5ztPHlXNmFcBu532ZfoTaO8mCelSrVT2ZWxLrJBD3D++ZTTrYPzQy0X95Uij8tPoO3zyA1jTOMkaGV56YEA8xgCCFdZb1X3WmAaGB6qMSpwUGbYfxXScUGTuCLcenvvbanU2ndXCvyoV54cFzrhYt4xNdqktJr9+01HgNKL8D2CtGB+R7gJD4Pse+960CC07FApEhKpsQlrNIeRKFurmLqilCylvh5jFFNN70onqPNR/jOTEnqRbKJiKjnAq4Zg4BHXxuMAixx1pxmVNlO1lwo/0KMlIivQuVw9s9pjyyrB5G7KpKoLblQLfx60xnJCo60YoO19XbNK5o6nVXfJOJuPK+i6peW X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?C3D4YcluDj2lTDJ8v95DKB6m9SO/pnwQxgt/LnT8ys3EG9kbWj3TI8gKRJat?= =?us-ascii?Q?htd5bIquvCKm7+sb4ZG50TP+Xla0vS+Yp7ZMF6R/dV6UIM+T3ad54yDVbQCt?= =?us-ascii?Q?+9wTTHgx9eQngrY8nnPuS4DAVBnX0KAVpc3Dav5Mnmk5cuoa5/EB+pi0XVcC?= =?us-ascii?Q?EKEnK5BgTgkJe2FWXOBD8CS89HFYhlbFErTtltKrM+qa1FnhMobICPTeudGd?= =?us-ascii?Q?ysjqx9PI1dNt6P9m1D8IByzWcKqx7fseFpu6gbqAFiYgkMVoo59cLARY8xp4?= =?us-ascii?Q?M3zgWkU6rYEQwinjUTRYxv4M/oZhi8LIql0SGpQ7sip0KboHh6VT/w7aCD18?= =?us-ascii?Q?vFhJrjKtzFjcs/tO8BlwEP2AlqMBbUnG+6m2JnYMow2vs6DvdXHs29sBNPEo?= =?us-ascii?Q?d7osfw4fv3uFCtoXx6BPVsGl+SBrd8M2hRuI5M36vSaCHR80eU+/cySb/8MJ?= =?us-ascii?Q?yoOrdjDBkjwSGLKtwkRmk6vUAuEbQV84+iN/xCI9hfiBm12/4yITs3+7Fmr0?= =?us-ascii?Q?M0kW/4OO+u1YN4rjwA/x2z01ixV4LwilbLscZ3SgR7zd5wSse5NV7SUxpmN1?= =?us-ascii?Q?fFl9oq25eeSZMWIPmvddBscegu+FS5EIoxgiEfC64nriviXo5l4ofv4tRoWS?= =?us-ascii?Q?+QH+PM+8szl25c0EFlwacPeDYUz1TECpL1FAcjOdOTefiye8q4lU9ugOC6gA?= =?us-ascii?Q?WFdxIc21naKtF+5vWiNirTNKQWgfTuMfRGMCLiyqHmx79DfHEWR2PxaWnNe6?= =?us-ascii?Q?i+349g3jMuo/PMnbO16ZXiPFneInM3+BAU6bSVSUTzJUEVxDekgoW789C/x6?= =?us-ascii?Q?05aAvStY0HvhK/kZkAWvpsIYt4kAqH9IB0t8uSStJmpaYoVyVoA0yjFj6vjz?= =?us-ascii?Q?Xpqgsxo5/916Hr7KXxWz/n23VlfNkACugKPdVp5uhY9I8qS1IsEzWABX+gXK?= =?us-ascii?Q?CbQfJnMuWy4MbiPhypoxCOV4qIK5TmJk+u5QDp2xwXkPECGj17sMFHmHaOwr?= =?us-ascii?Q?PsE0UoEwQ5HFODLhulAMtfBMTHbnzX2o3JnNeTvOHaD/5UAPcYo1FVPFNofi?= =?us-ascii?Q?csrlWx6TrzgxSLN/qMx22c3ZqvqnK74ZGP5ueMb5FSwU972QZiSwTWoYtVhD?= =?us-ascii?Q?UlI+0titK7oTMtBY7OvLLQxWX9do2i+XEZQJx1KELP/Sv1bkqtFmVAbQhAGx?= =?us-ascii?Q?0KW4RQpxz4NCgaepd1cZExN+PHIEVt4LA+V6jOj8aI3u61iL4VHV38ihA9Y?= =?us-ascii?Q?=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 690d62b5-39b2-47fa-8ce9-08db87ae180d X-MS-Exchange-CrossTenant-AuthSource: DM5PR03MB3163.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2023 16:43:20.9489 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR03MB7108 Received-SPF: pass client-ip=2a01:111:f400:7e8b::830; envelope-from=Morgan.J.Smith@outlook.com; helo=NAM04-DM6-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-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: -8.48 X-Spam-Score: -8.48 X-Migadu-Queue-Id: 188674701A X-TUID: vrG8bL21bioZ 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. testing/org-test.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/org-test.el b/testing/org-test.el index 47687b9f7..3f086f30c 100644 --- a/testing/org-test.el +++ b/testing/org-test.el @@ -387,8 +387,6 @@ Tramp related features. We mostly follow (defun org-test-load () "Load up the Org test suite." (interactive) - (setq org-id-locations-file - (expand-file-name ".test-org-id-locations" org-test-dir)) (cl-flet ((rld (base) ;; Recursively load all files, if files throw errors ;; then silently ignore the error and continue to the @@ -447,6 +445,8 @@ Tramp related features. We mostly follow (when (buffer-live-p b) (kill-buffer b))))) (defun org-test-update-id-locations () + (setq org-id-locations-file + (expand-file-name ".test-org-id-locations" org-test-dir)) (org-id-update-id-locations (directory-files org-test-example-dir 'full -- 2.41.0