]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor emacsclient-tests simplification
authorGlenn Morris <rgm@gnu.org>
Tue, 5 Sep 2017 22:55:49 +0000 (18:55 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 5 Sep 2017 22:55:49 +0000 (18:55 -0400)
* test/lib-src/emacsclient-tests.el (emacsclient-test-emacs):
Simplify.  Also work when running installed.

test/lib-src/emacsclient-tests.el

index 61ead4f0f32da148ca264b1bfd7a98c9ee6cd0a4..3a2396f78175f3baeb906ee0422a54bb33372e13 100644 (file)
 (require 'ert)
 
 (defconst emacsclient-test-emacs
-  (expand-file-name "emacsclient" (concat
-                                   (file-name-directory
-                                    (directory-file-name
-                                     (file-name-directory invocation-directory)))
-                                   "lib-src"))
-  "Path to emacsclient binary in build tree.")
+  (if installation-directory
+      (expand-file-name "lib-src/emacsclient" installation-directory)
+    "emacsclient")
+  "The emacsclient binary to test.")
 
 (defun emacsclient-test-call-emacsclient ()
   "Run emacsclient."