tests: Run only *.zsh files.

Otherwise, *.rej patch files would be run by zsh, with unpredictable results.
This commit is contained in:
Daniel Shahaf 2015-09-17 20:11:05 +00:00
parent 0d3a5dadea
commit 05ab9f7342

View File

@ -58,7 +58,7 @@ integer something_failed=0
ZSH_HIGHLIGHT_HIGHLIGHTERS=($1) ZSH_HIGHLIGHT_HIGHLIGHTERS=($1)
# Process each test data file in test data directory. # 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. # Load the data and prepare checking it.
PREBUFFER= BUFFER= ; expected_region_highlight=(); errors=() PREBUFFER= BUFFER= ; expected_region_highlight=(); errors=()