From 05ab9f7342ca2a9c2ae7e5d27109bef647ad5a2a Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 17 Sep 2015 20:11:05 +0000 Subject: [PATCH] tests: Run only *.zsh files. Otherwise, *.rej patch files would be run by zsh, with unpredictable results. --- tests/test-highlighting.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-highlighting.zsh b/tests/test-highlighting.zsh index 83ce6a0..1290bb8 100755 --- a/tests/test-highlighting.zsh +++ b/tests/test-highlighting.zsh @@ -58,7 +58,7 @@ integer something_failed=0 ZSH_HIGHLIGHT_HIGHLIGHTERS=($1) # Process each test data file in test data directory. -for data_file in ${0:h:h}/highlighters/$1/test-data/*; do +for data_file in ${0:h:h}/highlighters/$1/test-data/*.zsh; do # Load the data and prepare checking it. PREBUFFER= BUFFER= ; expected_region_highlight=(); errors=()