Skip to content

Commit

Permalink
test/e2e: minor vagrant Makefile fixes.
Browse files Browse the repository at this point in the history
Prefer using .ssh-config to 'vagrant ssh'. Be silent by default.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub authored and askervin committed Nov 15, 2023
1 parent 59ede18 commit b1a7009
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions test/e2e/files/Makefile.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
ifneq ($(V),1)
.SILENT:
endif

all: up

install: .plugins.installed.stamp
Expand All @@ -6,7 +10,7 @@ install: .plugins.installed.stamp
vagrant plugin install dotenv
vagrant plugin install vagrant-proxyconf
vagrant plugin install vagrant-qemu
$(Q)if [ ! -f "$@" ]; then \
if [ ! -f "$@" ]; then \
touch "$@"; \
fi;

Expand All @@ -19,8 +23,14 @@ up:
down:
vagrant halt

ssh: up
vagrant ssh
ssh:
if [ -f .ssh-config ]; then \
if ! ssh -F .ssh-config vagrant@node; then \
$(MAKE) up && ssh -F .ssh-config vagrant@node; \
fi \
else \
vagrant up && vagrant ssh; \
fi

status:
vagrant status
Expand Down

0 comments on commit b1a7009

Please sign in to comment.