Skip to content

Commit

Permalink
Always kill test server
Browse files Browse the repository at this point in the history
  • Loading branch information
Lon Ingram committed Aug 25, 2012
1 parent eda7c43 commit cb7f44a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ test:
@$(NODE_MODULES)/.bin/http-server -s -p $(TEST_PORT) & echo "$$!" > $(PID_FILE)
@cd $(PWD)
@$(NODE_MODULES)/.bin/mocha tests/test --recursive \
--globals define \
--timeout $(TEST_TIMEOUT) --slow $(TEST_SLOW) \
-R $(TEST_REPORTER)
@kill -9 `cat $(PID_FILE)`
@rm $(PID_FILE)
--globals define \
--timeout $(TEST_TIMEOUT) --slow $(TEST_SLOW) \
-R $(TEST_REPORTER) ; \
STATUS=$$? ; \
kill -9 `cat $(PID_FILE)` ; rm $(PID_FILE) ; \
exit $$STATUS

.PHONY: test

0 comments on commit cb7f44a

Please sign in to comment.