GNU bug report logs - #74352
29.4; emerge-files with tramp + local file fails

Previous Next

Package: emacs;

Reported by: Jörg Sommer <joerg <at> jo-so.de>

Date: Thu, 14 Nov 2024 04:53:02 UTC

Severity: normal

Tags: confirmed

Merged with 6850

Found in versions 24.0.50, 29.4

Fixed in version 31.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Jörg Sommer <joerg <at> jo-so.de>
Cc: 74352 <at> debbugs.gnu.org
Subject: bug#74352: 29.4; emerge-files with tramp + local file fails
Date: Sun, 12 Jan 2025 10:39:41 +0100
[Message part 1 (text/plain, inline)]
Jörg Sommer <joerg <at> jo-so.de> writes:

> Hi Michael,

Hi Jörg,

> I was trying to setup tests and tried to extract the tramp
> functions from test/lisp/net/tramp-tests.el, but got lost. I'm not so
> familiar with elisp.

Well, tramp-tests.el is very special, so it might be hard to extract
something. Perhaps, it is easier to inspect other test files using
Tramp. See test/README, it lists them when it comes to
$REMOTE_TEMPORARY_FILE_DIRECTORY.

> I saw your name on top of tramp-tests.el. Could you create for me a template
> for the emerge tests, where I can add the function calls and expectations?
>
> Such a “template” would also help me to reproduce some other bugs (in
> yasnippet and magit) related to tramp.

I've added a short version of emerge-tests.el I've just written from
scratch. I don't know emerge.el in detail, so I have done the checks
naïvely. You will use your own logic.

The heart of this is the existence of ert-remote-temporary-file-directory.
We cannot write Tramp tests with real remote hosts, this wouldn't be a
generic solution. Therefore, this variable provides a mock-up "remote"
directory "/mock::/tmp/", which can be used. If you want to test with a
real remote host, set the environmen variable
REMOTE_TEMPORARY_FILE_DIRECTORY like

--8<---------------cut here---------------start------------->8---
# env REMOTE_TEMPORARY_FILE_DIRECTORY=/ssh:somewhere:/tmp \
    make -C test emerge-test
--8<---------------cut here---------------end--------------->8---

In case of any problem, just ask!

> Bye, Jörg

Best regards, Michael.

[emerge-tests.el (text/plain, attachment)]

This bug report was last modified 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.