Skip to content

Commit

Permalink
Adjust log messages in testdir
Browse files Browse the repository at this point in the history
* `messages` wasn't shown with `Make_dos.mak`.
* `test.log` was shown twice with `Makefile`.
  • Loading branch information
k-takata committed Sep 19, 2018
1 parent 92cbf62 commit 6cd3d3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/testdir/Make_dos.mak
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ bench_re_freeze.out: bench_re_freeze.vim
# to write and a lot easier to read and debug.
# Limitation: Only works with the +eval feature.

newtests: $(NEW_TESTS)
newtests: newtestssilent
@if exist messages (findstr "SKIPPED FAILED" messages > nul) && type messages

newtestssilent: $(NEW_TESTS)

.vim.res:
@echo $(VIMPROG) > vimcmd
Expand Down
2 changes: 1 addition & 1 deletion src/testdir/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ nolog:
RUN_VIMTEST = VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(VALGRIND) $(VIMPROG) -f $(GUI_FLAG) -u unix.vim

newtests: newtestssilent
@/bin/sh -c "if test -f messages && grep -q 'SKIPPED\|FAILED' messages; then cat messages && if test -f test.log; then cat test.log; fi ; fi"
@/bin/sh -c "if test -f messages && grep -q 'SKIPPED\|FAILED' messages; then cat messages; fi"

newtestssilent: $(NEW_TESTS)

Expand Down

0 comments on commit 6cd3d3e

Please sign in to comment.