Call generate-test-j2.py in run-fuzzer.sh before calculating NEW_TESTS_OPT

This commit is contained in:
vdimir 2021-08-25 16:05:16 +03:00
parent b9b0b17ad0
commit 92f073a435
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31

View File

@ -85,6 +85,8 @@ function filter_exists_and_template
function fuzz
{
/generate-test-j2.py --path ch/tests/queries/0_stateless
# Obtain the list of newly added tests. They will be fuzzed in more extreme way than other tests.
# Don't overwrite the NEW_TESTS_OPT so that it can be set from the environment.
NEW_TESTS="$(sed -n 's!\(^tests/queries/0_stateless/.*\.sql\(\.j2\)\?\)$!ch/\1!p' ci-changed-files.txt | sort -R)"
@ -97,8 +99,6 @@ function fuzz
NEW_TESTS_OPT="${NEW_TESTS_OPT:-}"
fi
/generate-test-j2.py --path ch/tests/queries/0_stateless
export CLICKHOUSE_WATCHDOG_ENABLE=0 # interferes with gdb
clickhouse-server --config-file db/config.xml -- --path db 2>&1 | tail -100000 > server.log &
server_pid=$!