]> git.eshelyaron.com Git - emacs.git/commit
Remove Tramp temp files if advised during tests
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 15 Nov 2024 13:28:08 +0000 (14:28 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 20 Nov 2024 16:13:21 +0000 (17:13 +0100)
commitb0cc2bff04bb69a78a4b3843c96a4c06670fcfd4
tree5c13b6a598df627e8abbcc32fe920f5ad0e62963
parentc4f507a011fc4c8e5c0d82cf1665055326778d37
Remove Tramp temp files if advised during tests

* lisp/net/tramp-fuse.el (tramp-fuse-name-prefix): New defconst.
(tramp-fuse-mount-point): Use it.

* test/lisp/net/tramp-tests.el (tramp-test-name-prefix): New defconst.
(tramp--test-make-temp-name, tramp-test40-make-nearby-temp-file)
(tramp-test47-read-password, tramp-test47-read-otp-password):
Use it.
(tramp--test-enabled-checked): Move down.
(tramp--test-enabled): Delete all Tramp temp files when
environment variable $TRAMP_TEST_CLEANUP_TEMP_FILES is set.
(tramp-test02-file-name-dissect-separate):
Adapt `tramp-crypt-directories' according to syntax.
(tramp-test47-read-password):
Let-bind `tramp-connection-properties' instead of modifying
`tramp-methods'.

(cherry picked from commit 310ce93d02c5317be589803fbde96fd20b96e496)
lisp/net/tramp-fuse.el
test/lisp/net/tramp-tests.el