From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#51941: Detect duplication of ERT tests Date: Wed, 24 Nov 2021 20:16:10 +0800 Message-ID: <87czmpbvg5.fsf@localhost> References: <21CD2DED-354E-4C46-9794-07172E3BD5F1@acm.org> <87fsrtkayn.fsf@gnus.org> <87lf1eau3l.fsf@localhost> <5AA13574-8ED8-450E-8F92-1C374A2717AB@acm.org> <87fsrlc36p.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24975"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51941@debbugs.gnu.org, Lars Ingebrigtsen To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 24 13:17:33 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mprDQ-0006EF-Tl for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Nov 2021 13:17:32 +0100 Original-Received: from localhost ([::1]:48952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mprDP-0006aE-E1 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Nov 2021 07:17:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mprBy-0005oi-PD for bug-gnu-emacs@gnu.org; Wed, 24 Nov 2021 07:16:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mprBy-0001ZU-C1 for bug-gnu-emacs@gnu.org; Wed, 24 Nov 2021 07:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mprBy-0003oy-7U for bug-gnu-emacs@gnu.org; Wed, 24 Nov 2021 07:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Nov 2021 12:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51941 X-GNU-PR-Package: emacs Original-Received: via spool by 51941-submit@debbugs.gnu.org id=B51941.163775610914608 (code B ref 51941); Wed, 24 Nov 2021 12:16:02 +0000 Original-Received: (at 51941) by debbugs.gnu.org; 24 Nov 2021 12:15:09 +0000 Original-Received: from localhost ([127.0.0.1]:53398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mprB6-0003nY-G9 for submit@debbugs.gnu.org; Wed, 24 Nov 2021 07:15:08 -0500 Original-Received: from mail-ed1-f51.google.com ([209.85.208.51]:39598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mprB0-0003mg-7C for 51941@debbugs.gnu.org; Wed, 24 Nov 2021 07:15:07 -0500 Original-Received: by mail-ed1-f51.google.com with SMTP id w1so9476359edc.6 for <51941@debbugs.gnu.org>; Wed, 24 Nov 2021 04:15:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=MkcWLBpKWGwyLxc3p45zPkPERMKLDhCpVrX5anrmZfo=; b=Eea06JqYU09LRkqeCEUMlXnaHh8ZfkuwFjCZwI1ZcnuLwWQ/ZKbbOTaEaMtmpnbmUg M8nxTgPsrDVhugcsm0o3RTw4XhEsuP7qUgpnWrTpdQEzGx5FiEVaqFczRZGtgbppPP8H QAReSPJJlJBvNu0YnKtW1eHRiA1v3Gwf94fcjcvk/0gayoyC+miwD5/PGnwPT4vSfIr+ XoQck+OUZGVKi803CwNoBOOzmjpWMGypmY5fb/4sNM/1vfOjYlSJh97+nQqSv8ycb56s /DbUG/lSNtcQ5xdsRVMUY8JofVb4J2kkZfMsNQ6yt4czlCQbWL7b/rQgKwcFakfOzdRh paww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=MkcWLBpKWGwyLxc3p45zPkPERMKLDhCpVrX5anrmZfo=; b=xUQyYt6FCBuRUaGpiI5YAL/fnFtG/b4X7wuFtJpidQs7ongKCZg8iyx3P9nSv/99zG fTi2m7OXorVtsazu+aDTKx5e1+chdbGcFCWAFDiXfVM1Tr9ltFpDZwNpLJimkKGYIgQs kQ6a57dpeF1+xOzz+0FVnH4MHRqjYj1ilKAUv3dF8L5U/OOkZTEIGdBIBDYypLuJuQsF ofihjEwKoM0e4V/MnPdgrZ7FHzXIKh4fCn6qUsUJh3WhPFpX/biiwoOiSbjgQNvTcHPO sssFy9Yu4Evd4/bzofN2mJSbTz8z3uBlkDkvgddJdKQgqX2WQAvx4FCwpc6s6yKYafj5 WySA== X-Gm-Message-State: AOAM5331zwrFo2HzVnv2b20PPg1pEVUeD39BvGT6d6Dflc1/cJ/oSMo4 p455c5uVztsbQogCsCcpsko= X-Google-Smtp-Source: ABdhPJzMO7NOZDch2r+GIxaNEGJA9hWodlu5RVZGbxcMsAK3RyhxHz8kyZVSSZtiUUEoAkFjzMvt9A== X-Received: by 2002:a17:906:b2d0:: with SMTP id cf16mr19428744ejb.52.1637756096056; Wed, 24 Nov 2021 04:14:56 -0800 (PST) Original-Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id yc24sm6639883ejb.104.2021.11.24.04.14.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 04:14:55 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220727 Archived-At: Mattias Engdeg=C3=A5rd writes: > Best practice is to run each ERT test file in a separate Emacs process. T= his ensures isolation between the tests, which can be quite important, but = also permits them to be run in parallel. Easiest is to do this from a Makef= ile but you could of course do it from a controlling Emacs process if you p= refer that. Makes sense, though it is not trivial to change the existing code. > Now if you for some reason want to stick with running them all in a singl= e process, which I would advice against, then at least avoid the load-file = if the file has already been loaded. Maybe use `require` with a file argume= nt instead of load-file. Using require indeed solved the issue. Best, Ihor