emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] org-attach: Fix git annex test directories
@ 2016-02-14 19:19 Erik Hetzner
  2016-02-16 20:41 ` Achim Gratz
  0 siblings, 1 reply; 2+ messages in thread
From: Erik Hetzner @ 2016-02-14 19:19 UTC (permalink / raw)
  To: emacs-orgmode

* testing/lisp/test-org-attach-annex.el: `default-directory' should end
  in a slash to function properly. This was causing test failures on
  older versions of git-annex.
---
Thanks for bearing with me on getting git-annex to work properly. This fixes an
issue with running tests on debian with older versions of git-annex.

testing/lisp/test-org-attach-annex.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/testing/lisp/test-org-attach-annex.el b/testing/lisp/test-org-attach-annex.el
index 44b4ad0..29c5c7a 100644
--- a/testing/lisp/test-org-attach-annex.el
+++ b/testing/lisp/test-org-attach-annex.el
@@ -24,7 +24,7 @@
 (require 'cl-lib)
 
 (defmacro test-org-attach-annex/with-annex (&rest body)
-  `(let ((tmpdir (make-temp-file "org-annex-test" t)))
+  `(let ((tmpdir (make-temp-file "org-annex-test" t "/")))
      (unwind-protect
 	 (let ((default-directory tmpdir)
 	       (org-attach-directory tmpdir))
@@ -41,7 +41,7 @@
      (should-not (org-attach-use-annex))))
 
   ;; test with non annex directory
-  (let ((tmpdir (make-temp-file "org-annex-test" t)))
+  (let ((tmpdir (make-temp-file "org-annex-test" t "/")))
      (unwind-protect
 	 (let ((default-directory tmpdir)
 	       (org-attach-directory tmpdir))
@@ -52,7 +52,7 @@
 (ert-deftest test-org-attach/get-maybe ()
   (test-org-attach-annex/with-annex
    (let ((path (expand-file-name "test-file"))
-	 (annex-dup (make-temp-file "org-annex-test" t)))
+	 (annex-dup (make-temp-file "org-annex-test" t "/")))
      (with-temp-buffer
        (insert "hello world\n")
        (write-file path))
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] org-attach: Fix git annex test directories
  2016-02-14 19:19 [PATCH] org-attach: Fix git annex test directories Erik Hetzner
@ 2016-02-16 20:41 ` Achim Gratz
  0 siblings, 0 replies; 2+ messages in thread
From: Achim Gratz @ 2016-02-16 20:41 UTC (permalink / raw)
  To: emacs-orgmode

Erik Hetzner writes:
> Thanks for bearing with me on getting git-annex to work properly. This fixes an
> issue with running tests on debian with older versions of git-annex.

Pushed to master.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-16 20:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-14 19:19 [PATCH] org-attach: Fix git annex test directories Erik Hetzner
2016-02-16 20:41 ` Achim Gratz

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).