Skip to content

Commit

Permalink
On error, dump the entire debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Nov 13, 2013
1 parent 78b83d8 commit 23dbb5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tests/keywords/all.mk
Expand Up @@ -62,7 +62,9 @@ $(BUILD_DIR)/tests/keywords/%.attrs: $(DIR)/%.attrs | $(BUILD_DIR)/tests/keyword
#
$(BUILD_DIR)/tests/keywords/%: $(DIR)/% $(BUILD_DIR)/tests/keywords/%.attrs $(BUILD_DIR)/bin/unittest | $(BUILD_DIR)/tests/keywords raddb/mods-enabled/pap raddb/mods-enabled/always
@echo UNIT-TEST $(notdir $@)
@KEYWORD=$(notdir $@) $(JLIBTOOL) --quiet --mode=execute ./$(BUILD_DIR)/bin/unittest -D share -d src/tests/keywords/ -i $@.attrs -f $@.attrs -xx > $@.log 2>&1
@if ! KEYWORD=$(notdir $@) $(JLIBTOOL) --quiet --mode=execute ./$(BUILD_DIR)/bin/unittest -D share -d src/tests/keywords/ -i $@.attrs -f $@.attrs -xx > $@.log 2>&1; then \
cat $@.log; exit 1; \
fi
@touch $@

#
Expand Down

0 comments on commit 23dbb5b

Please sign in to comment.