summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2026-05-14 12:31:04 +0200
committerMichael Albinus <michael.albinus@gmx.de>2026-05-14 12:31:04 +0200
commitd0d657fa9027a1a4fa4ce151f65f3bcac1e2d535 (patch)
treeb15947ecc25ea2631f1387757b7596bf32e7b182 /test
parent93ea0d7d289ad384a5d71aefe9e68551abcffd24 (diff)
; Minor Tramp cleanup
* lisp/net/tramp.el (tramp-unquote-shell-quote-argument): Do not expand remote file names w/o a localname. * test/lisp/net/tramp-tests.el (tramp--test-supports-environment-variables-p): New defun. (tramp-test33-environment-variables): Use it.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/net/tramp-tests.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index d6eb782df3d..c0ad7205c5d 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -6524,8 +6524,7 @@ INPUT, if non-nil, is a string sent to the process."
"Check that remote processes set / unset environment variables properly."
:tags '(:expensive-test)
(skip-unless (tramp--test-enabled))
- (skip-unless (tramp--test-sh-p))
- (skip-unless (not (tramp--test-crypt-p)))
+ (skip-unless (tramp--test-supports-environment-variables-p))
(dolist (this-shell-command-to-string
(append
@@ -7797,6 +7796,11 @@ This requires restrictions of file name syntax."
(tramp--test-sh-p) (tramp--test-smb-p)
(tramp--test-sudoedit-p)))
+(defun tramp--test-supports-environment-variables-p ()
+ "Return whether setting environment variables is supported."
+ (and (tramp--test-sh-p)
+ (not (tramp--test-crypt-p))))
+
(defun tramp--test-check-files (&rest files)
"Run a simple but comprehensive test over every file in FILES."
(dolist (quoted (if (tramp--test-expensive-test-p) '(nil t) '(nil)))