summary history branches tags files
commit:8789294d84292b8e00928a35902c0175c1f0e993
author:Trevor Bentley
committer:Trevor Bentley
date:Wed Dec 9 18:26:26 2020 +0100
parents:fcee6a66eadc83bf485d8c2efceafc18b5ddf3c6
make test script ignore snitch installed by package manager
diff --git a/test_snitch.sh b/test_snitch.sh
line changes: +5/-1
index c10488f..780fa32
--- a/test_snitch.sh
+++ b/test_snitch.sh
@@ -1,6 +1,10 @@
 #!/bin/bash
 emacs -batch \
-      --eval "(add-to-list 'load-path \"~/.emacs.d/snitch/\")" \
       --eval "(package-initialize)" \
+      --eval "(setq load-path (seq-filter \
+                (lambda (x) (not (string-match \"/snitch\" x))) load-path))" \
+      --eval "(add-to-list 'load-path \"~/.emacs.d/snitch/\")" \
+      --eval "(require 'snitch)" \
+      --eval "(message \"Testing snitch version: %s\" (snitch-version))" \
       -l ert -l snitch-test.el \
       -f ert-run-tests-batch-and-exit