Skip to content

Commit f6423ca

Browse files
authored
Fix tests (#15)
1 parent b2f3efe commit f6423ca

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

example/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ RUN install_vim -name vim-precise -tag v7.3.429 -build \
44
-name vim-trusty -tag v7.4.052 -build \
55
-name vim-vivid -tag v7.4.488 -build \
66
-name vim-wily -tag v7.4.712 -build \
7-
-name vim-xenial -tag v7.4.963 -build \
7+
-name vim-xenial -tag v7.4.963 -build

example/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
IMAGE ?= tweekmonster/ubuntu-vims
22
PLUGINS = test/plugins
3-
DOCKER = docker run -it --rm -v $(PWD):/testplugin -v $(PWD)/test:/home "$(IMAGE)"
3+
DOCKER = docker run -a stderr --rm -v $(PWD):/testplugin -v $(PWD)/test:/home "$(IMAGE)"
44

55
$(PLUGINS)/vader.vim:
66
mkdir -p $(PLUGINS)
@@ -10,7 +10,9 @@ test-setup: $(PLUGINS)/vader.vim
1010
docker images -q $(IMAGE) || docker pull $(IMAGE)
1111

1212
test: test-setup
13-
for vim in $$(docker run --rm $(IMAGE) ls /vim-build/bin | grep -E '^n?vim'); do \
13+
vims=$$(docker run --rm $(IMAGE) ls /vim-build/bin | grep -E '^n?vim'); \
14+
if [ -z "$$vims" ]; then echo "No Vims found!"; exit 1; fi; \
15+
for vim in $$vims; do \
1416
$(DOCKER) $$vim '+Vader! test/*'; \
1517
done
1618

0 commit comments

Comments
 (0)