Software /
code /
prosody
Changeset
9807:dcc85d72d5b3
GNUmakefile: Stop Prosody in case of failure in integration-test
Normally make skips the remaning steps in the rule if one fails. This
collects the status code and re-returns it after stopping the running
Prosody instance.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 24 Jan 2019 05:48:55 +0100 |
parents | 9806:b72d2f4153f7 |
children | 9815:fed614598f88 |
files | GNUmakefile |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/GNUmakefile Tue Jan 22 10:44:24 2019 +0100 +++ b/GNUmakefile Thu Jan 24 05:48:55 2019 +0100 @@ -74,8 +74,9 @@ integration-test: all $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start - $(SCANSION) -d ./spec/scansion - $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop + $(SCANSION) -d ./spec/scansion; R=$$? \ + $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop \ + exit $$R coverage: -rm -- luacov.*