From: Rob Browning Date: Mon, 17 Dec 2018 21:09:12 +0000 (-0600) Subject: tramp-test42-remote-load-path: regexp-quote directory X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~150^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ef1a7ddf208a19da9d2dc265b8027fc4f589fccf;p=emacs.git tramp-test42-remote-load-path: regexp-quote directory Otherwise the test may fail for some paths like those seen in a Debian sbuild chroot, e.g. build/emacs-i87jK3/emacs-26.1+1/... --- diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 996a31d375f..60f2aaf034b 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el @@ -4702,8 +4702,9 @@ process sentinels. They shall not disturb each other." (string-match (format "Loading %s" - (expand-file-name - "tramp-cmds" (file-name-directory (locate-library "tramp")))) + (regexp-quote + (expand-file-name + "tramp-cmds" (file-name-directory (locate-library "tramp"))))) (shell-command-to-string (format "%s -batch -Q -L %s -l tramp-sh --eval %s"