emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 206ce48: Fix a big in the srecore test setup


From: Lars Ingebrigtsen
Subject: master 206ce48: Fix a big in the srecore test setup
Date: Tue, 18 Aug 2020 14:06:58 -0400 (EDT)

branch: master
commit 206ce48fb0f635dcc67ef00586af8cf595fcb17c
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix a big in the srecore test setup
    
    * test/lisp/cedet/srecode-utest-template.el
    (srecode-utest-project): Set the current directory in the project
    so that we'll find it later (bug#42533).  The in-project directory
    is /tmp, which is not actually what it is on many machines that
    have the temporary directory somewhere else.
---
 test/lisp/cedet/srecode-utest-template.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/lisp/cedet/srecode-utest-template.el 
b/test/lisp/cedet/srecode-utest-template.el
index 63c33a3..41e67fd 100644
--- a/test/lisp/cedet/srecode-utest-template.el
+++ b/test/lisp/cedet/srecode-utest-template.el
@@ -347,6 +347,10 @@ INSIDE SECTION: ARG HANDLER ONE")
       ;; Load the application templates, and make sure we can find them.
       (srecode-load-tables-for-mode major-mode 'tests)
 
+      (dolist (table (oref (srecode-table) tables))
+        (when (gethash "test" (oref table contexthash))
+          (oset table project default-directory)))
+
       (setq temp (srecode-template-get-table (srecode-table)
                                             "test-project"
                                             "test"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]