tramp-test42-remote-load-path: regexp-quote directory
authorRob Browning <rlb@defaultvalue.org>
Mon, 17 Dec 2018 21:09:12 +0000 (15:09 -0600)
committerRob Browning <rlb@defaultvalue.org>
Wed, 26 Dec 2018 19:54:16 +0000 (19:54 +0000)
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/...

Gbp-Pq: Name 0011-tramp-test42-remote-load-path-regexp-quote-directory.patch

test/lisp/net/tramp-tests.el

index 996a31d375f7e080b52985613ee3fc70a4f363d0..60f2aaf034b747b19e2ef2e37c8ca5f720adea4f 100644 (file)
@@ -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"