From 233ea1a7660e4d6c0b13c91712de122ddbae9f0a Mon Sep 17 00:00:00 2001 From: Jackson Ray Hamilton Date: Sat, 6 Jun 2015 02:42:14 -0700 Subject: [PATCH] Kill any scopifier server before running the tests. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index bd82b883a..0b5c23781 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ CASK = cask EMACS = emacs DEPENDENCIES = .cask/ +SCOPIFIER_PORT = $$(lsof -t -i:6969) +KILL_SCOPIFIER = if [ -n "${SCOPIFIER_PORT}" ]; then kill ${SCOPIFIER_PORT}; fi all: uncompile compile test @@ -26,6 +28,7 @@ ${DEPENDENCIES}: ${CASK} test: ${DEPENDENCIES} + ${KILL_SCOPIFIER} ${CASK} exec ${EMACS} -Q -batch \ -L . \ -l ert \ @@ -36,6 +39,7 @@ test: ${DEPENDENCIES} -f ert-run-tests-batch-and-exit cover: ${DEPENDENCIES} + ${KILL_SCOPIFIER} ${CASK} exec ${EMACS} -Q -batch \ -L . \ -l ert \ -- 2.39.2