GNU bug report logs -
#58265
29.0.50; [PATCH] $HOME adjustment for 'ert-remote-temporary-file-directory' is wrong
Previous Next
Reported by: Jim Porter <jporterbugs <at> gmail.com>
Date: Mon, 3 Oct 2022 01:33:02 UTC
Severity: normal
Tags: patch
Found in version 29.0.50
Done: Jim Porter <jporterbugs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I tried to use 'ert-remote-temporary-file-directory' in a test for an
external package, but it ended up breaking some existing tests simply by
requiring both tramp and ert-x. These tests indirectly used 'cd' (by way
of 'compilation-start'), which triggered the failure.
Steps to reproduce:
$ mkdir -p ~/src
$ emacs -Q --batch -l tramp -l ert-x --eval '(cd "~/src/")'
Result:
Error: error ("No such directory: ~/src/")
mapbacktrace(#f(compiled-function (evald func args flags)
#<bytecode 0xc43976fdbae86a5>))
debug-early-backtrace()
debug-early(error (error "No such directory: ~/src/"))
error("No such directory: %s" "~/src/")
cd("~/src")
eval((cd "~/src") t)
command-line-1(("-l" "tramp" "-l" "ert-x" "--eval" "(cd \"~/src/\")"))
command-line()
normal-top-level()
No such directory: ~/src/
Looking at ert-x.el, I think this is because
'ert-remote-temporary-file-directory' does some fixup on $HOME, but it
was too aggressive. See attached.
[0001-Fix-logic-of-HOME-adjustment-for-ert-remote-temporar.patch (text/plain, attachment)]
This bug report was last modified 2 years and 228 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.