From 41d90cb5ed7cae3978b314a7277eaf5a65acf205 Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Thu, 12 Mar 2020 20:48:46 -0500 Subject: [PATCH] make test: Run tests under env -i This makes the tests more reproducable. In particular it avoids hiding a WARN_CREATE_GLOBAL error when the dev happens to have defined that variable in the environment (cf. next commit). --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6cc2648..42081ed 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ test: for test in highlighters/*; do \ if [ -d $$test/test-data ]; then \ echo "Running test $${test##*/}"; \ - $(ZSH) -f tests/test-highlighting.zsh "$${test##*/}"; \ + env -i QUIET=$$QUIET $(ZSH) -f tests/test-highlighting.zsh "$${test##*/}"; \ : $$(( result |= $$? )); \ fi \ done; \