mirror of
https://git.netfilter.org/nftables
synced 2026-01-26 10:34:27 +00:00
tests: build: Avoid a recursive 'make check' run
When called by 'make check', the test suite runs with a MAKEFLAGS variable in environment which defines TEST_LOGS variable with the test suites' corresponding logs as value. This in turn causes the called 'make distcheck' to run test suites although it is not supposed to. Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
parent
7c05001f9d
commit
106f315434
@ -20,6 +20,10 @@ fi
|
||||
git clone "$dir" "$tmpdir" &>>"$log_file"
|
||||
cd "$tmpdir" || exit
|
||||
|
||||
# do not leak data from a calling 'make check' run into the new build otherwise
|
||||
# this will defeat the test suite invocation prevention for 'make distcheck'
|
||||
unset MAKEFLAGS
|
||||
|
||||
if ! autoreconf -fi &>>"$log_file" ; then
|
||||
echo "Something went wrong. Check the log '${log_file}' for details."
|
||||
exit 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user