diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-03-30 11:13:40 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-03-30 12:15:53 +0200 |
commit | dc0774cbdfaee5b81085596dbc686036ca9a2d51 (patch) | |
tree | fba683851d1fce3a967af0028ffce9dde0caad5c /src | |
parent | f9aedbc3009d60b61e49034dde76b2ba1cc094b4 (diff) | |
download | bitcoin-dc0774cbdfaee5b81085596dbc686036ca9a2d51.tar.xz |
build, test: Fix test logfile name
Co-authored-by: Luke Dashjr <luke-jr+git@utopios.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.test.include | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Makefile.test.include b/src/Makefile.test.include index 56d8842d17..24e35c3824 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -390,14 +390,14 @@ endif grep -E "(BOOST_FIXTURE_TEST_SUITE\\(|BOOST_AUTO_TEST_SUITE\\()" | \ cut -d '(' -f 2 | cut -d ',' -f 1 | cut -d ')' -f 1) \ from $< - $(AM_V_at)$(TEST_BINARY) \ - --catch_system_errors=no -l test_suite -t "$$(\ + $(AM_V_at)export TEST_LOGFILE=$(abs_builddir)/$$(\ + echo $< | grep -E -o "(wallet/test/.*\.cpp|test/.*\.cpp)" | $(SED) -e s/\.cpp/.log/ \ + ) && \ + $(TEST_BINARY) --catch_system_errors=no -l test_suite -t "$$(\ cat $< | \ grep -E "(BOOST_FIXTURE_TEST_SUITE\\(|BOOST_AUTO_TEST_SUITE\\()" | \ cut -d '(' -f 2 | cut -d ',' -f 1 | cut -d ')' -f 1\ - )" -- DEBUG_LOG_OUT > $(abs_builddir)/$$(\ - echo $< | grep -E -o "(wallet/test/.*\.cpp|test/.*\.cpp)" | $(SED) -e s/\.cpp/.log/\ - ) 2>&1 || (cat $<.log && false) + )" -- DEBUG_LOG_OUT > "$$TEST_LOGFILE" 2>&1 || (cat "$$TEST_LOGFILE" && false) %.json.h: %.json @$(MKDIR_P) $(@D) |