diff options
| author | Glenn Morris | 2017-09-05 18:55:49 -0400 |
|---|---|---|
| committer | Glenn Morris | 2017-09-05 18:55:49 -0400 |
| commit | a2cf4d49f1548b438ce7dd1e99bb2bb8e4e99092 (patch) | |
| tree | ef6dfb75e1b5b23069782b689139b42cddf5acbf /test/lib-src | |
| parent | 732fdeb341e3b53568548254ef37c7413c4343bb (diff) | |
| download | emacs-a2cf4d49f1548b438ce7dd1e99bb2bb8e4e99092.tar.gz emacs-a2cf4d49f1548b438ce7dd1e99bb2bb8e4e99092.zip | |
Minor emacsclient-tests simplification
* test/lib-src/emacsclient-tests.el (emacsclient-test-emacs):
Simplify. Also work when running installed.
Diffstat (limited to 'test/lib-src')
| -rw-r--r-- | test/lib-src/emacsclient-tests.el | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/lib-src/emacsclient-tests.el b/test/lib-src/emacsclient-tests.el index 61ead4f0f32..3a2396f7817 100644 --- a/test/lib-src/emacsclient-tests.el +++ b/test/lib-src/emacsclient-tests.el | |||
| @@ -26,12 +26,10 @@ | |||
| 26 | (require 'ert) | 26 | (require 'ert) |
| 27 | 27 | ||
| 28 | (defconst emacsclient-test-emacs | 28 | (defconst emacsclient-test-emacs |
| 29 | (expand-file-name "emacsclient" (concat | 29 | (if installation-directory |
| 30 | (file-name-directory | 30 | (expand-file-name "lib-src/emacsclient" installation-directory) |
| 31 | (directory-file-name | 31 | "emacsclient") |
| 32 | (file-name-directory invocation-directory))) | 32 | "The emacsclient binary to test.") |
| 33 | "lib-src")) | ||
| 34 | "Path to emacsclient binary in build tree.") | ||
| 35 | 33 | ||
| 36 | (defun emacsclient-test-call-emacsclient () | 34 | (defun emacsclient-test-call-emacsclient () |
| 37 | "Run emacsclient." | 35 | "Run emacsclient." |