Skip to content

Commit

Permalink
Show report.log if yaws is not started during a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Faulet committed Dec 9, 2014
1 parent ebcc532 commit f4e71c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/support/include.mk
Expand Up @@ -24,7 +24,13 @@ start: $(top_builddir)/test/bin/yaws quiet-stop prepare-test
$(AM_V_at)$(top_builddir)/test/bin/yaws --sname test --daemon --id testid --conf $(YAWS_CONF)

wait-started: $(top_builddir)/test/bin/yaws
$(AM_V_at)$(top_builddir)/test/bin/yaws --id testid --wait-started=$(WAIT_TIME)
$(AM_V_at)$(top_builddir)/test/bin/yaws --id testid --wait-started=$(WAIT_TIME);\
err=$$?; \
if test $$err -ne 0; then \
cat logs/report.log; \
fi; \
exit $$err


wait-stopped: $(top_builddir)/test/bin/yaws
$(AM_V_at)$(top_builddir)/test/bin/yaws --id testid --wait-stopped=$(WAIT_TIME)
Expand Down

0 comments on commit f4e71c2

Please sign in to comment.