aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2014-06-02 11:53:43 +0200
committerMichael Albinus2014-06-02 11:53:43 +0200
commit84dbe84b9f87e49b2307e63859529f0a9f2ad5b9 (patch)
tree7f679291c6a52633d129c610b91a4ea977c26668
parent9e158ac805afeab4346fbf34ddb642b4cfbb3c98 (diff)
downloademacs-84dbe84b9f87e49b2307e63859529f0a9f2ad5b9.tar.gz
emacs-84dbe84b9f87e49b2307e63859529f0a9f2ad5b9.zip
* test/automated/tramp-tests.el (tramp-remote-process-environment): Declare.
(tramp-test29-vc-registered): Set $BZR_HOME.
-rw-r--r--test/ChangeLog5
-rw-r--r--test/automated/tramp-tests.el10
2 files changed, 15 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 545e77adee9..5c5017c8825 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
12014-06-02 Michael Albinus <michael.albinus@gmx.de>
2
3 * automated/tramp-tests.el (tramp-remote-process-environment): Declare.
4 (tramp-test29-vc-registered): Set $BZR_HOME.
5
12014-06-01 Michael Albinus <michael.albinus@gmx.de> 62014-06-01 Michael Albinus <michael.albinus@gmx.de>
2 7
3 * automated/tramp-tests.el (tramp-test29-vc-registered): 8 * automated/tramp-tests.el (tramp-test29-vc-registered):
diff --git a/test/automated/tramp-tests.el b/test/automated/tramp-tests.el
index 1ab3e1a6524..349a6ad0385 100644
--- a/test/automated/tramp-tests.el
+++ b/test/automated/tramp-tests.el
@@ -47,6 +47,7 @@
47(declare-function tramp-find-executable "tramp-sh") 47(declare-function tramp-find-executable "tramp-sh")
48(declare-function tramp-get-remote-path "tramp-sh") 48(declare-function tramp-get-remote-path "tramp-sh")
49(defvar tramp-copy-size-limit) 49(defvar tramp-copy-size-limit)
50(defvar tramp-remote-process-environment)
50 51
51;; There is no default value on w32 systems, which could work out of the box. 52;; There is no default value on w32 systems, which could work out of the box.
52(defconst tramp-test-temporary-file-directory 53(defconst tramp-test-temporary-file-directory
@@ -1398,10 +1399,19 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1398 (let* ((default-directory tramp-test-temporary-file-directory) 1399 (let* ((default-directory tramp-test-temporary-file-directory)
1399 (tmp-name1 (tramp--test-make-temp-name)) 1400 (tmp-name1 (tramp--test-make-temp-name))
1400 (tmp-name2 (expand-file-name "foo" tmp-name1)) 1401 (tmp-name2 (expand-file-name "foo" tmp-name1))
1402 (tramp-remote-process-environment tramp-remote-process-environment)
1401 (vc-handled-backends 1403 (vc-handled-backends
1402 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil 1404 (with-parsed-tramp-file-name tramp-test-temporary-file-directory nil
1403 (cond 1405 (cond
1404 ((tramp-find-executable v vc-bzr-program (tramp-get-remote-path v)) 1406 ((tramp-find-executable v vc-bzr-program (tramp-get-remote-path v))
1407 (setq tramp-remote-process-environment
1408 (cons (format "BZR_HOME=%s"
1409 (file-remote-p tmp-name1 'localname))
1410 tramp-remote-process-environment))
1411 ;; We must force a reconnect, in order to activate $BZR_HOME.
1412 (tramp-cleanup-connection
1413 (tramp-dissect-file-name tramp-test-temporary-file-directory)
1414 nil 'keep-password)
1405 '(Bzr)) 1415 '(Bzr))
1406 ((tramp-find-executable v vc-git-program (tramp-get-remote-path v)) 1416 ((tramp-find-executable v vc-git-program (tramp-get-remote-path v))
1407 '(Git)) 1417 '(Git))