Merge pull request #8966 from shindere/fix-reading-ocamltests-files

Accept ocamltests files not terminated by a newline
master
Nicolás Ojeda Bär 2019-09-24 08:05:54 +02:00 committed by GitHub
commit 31d75f7526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ exec-ocamltest:
@if [ -z "$(DIR)" ]; then exit 1; fi
@if [ ! -d "$(DIR)" ]; then exit 1; fi
@file=$(DIR)/ocamltests; \
(IFS=$$(printf "\r\n"); while read testfile; do \
(IFS=$$(printf "\r\n"); while read testfile || [ -n "$$testfile" ]; do \
TERM=dumb $(OCAMLTESTENV) \
$(ocamltest) $(OCAMLTESTFLAGS) $(DIR)/$$testfile || \
echo " ... testing '$$testfile' => unexpected error"; \