Skip to content

Commit dc0774c

Browse files
hebastoluke-jr
andcommitted
build, test: Fix test logfile name
Co-authored-by: Luke Dashjr <[email protected]>
1 parent f9aedbc commit dc0774c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Makefile.test.include

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -390,14 +390,14 @@ endif
390390
grep -E "(BOOST_FIXTURE_TEST_SUITE\\(|BOOST_AUTO_TEST_SUITE\\()" | \
391391
cut -d '(' -f 2 | cut -d ',' -f 1 | cut -d ')' -f 1) \
392392
from $<
393-
$(AM_V_at)$(TEST_BINARY) \
394-
--catch_system_errors=no -l test_suite -t "$$(\
393+
$(AM_V_at)export TEST_LOGFILE=$(abs_builddir)/$$(\
394+
echo $< | grep -E -o "(wallet/test/.*\.cpp|test/.*\.cpp)" | $(SED) -e s/\.cpp/.log/ \
395+
) && \
396+
$(TEST_BINARY) --catch_system_errors=no -l test_suite -t "$$(\
395397
cat $< | \
396398
grep -E "(BOOST_FIXTURE_TEST_SUITE\\(|BOOST_AUTO_TEST_SUITE\\()" | \
397399
cut -d '(' -f 2 | cut -d ',' -f 1 | cut -d ')' -f 1\
398-
)" -- DEBUG_LOG_OUT > $(abs_builddir)/$$(\
399-
echo $< | grep -E -o "(wallet/test/.*\.cpp|test/.*\.cpp)" | $(SED) -e s/\.cpp/.log/\
400-
) 2>&1 || (cat $<.log && false)
400+
)" -- DEBUG_LOG_OUT > "$$TEST_LOGFILE" 2>&1 || (cat "$$TEST_LOGFILE" && false)
401401

402402
%.json.h: %.json
403403
@$(MKDIR_P) $(@D)

0 commit comments

Comments
 (0)