Stateless tests: fix flaky tests 2

This commit is contained in:
Nikita Fomichev 2024-07-12 21:09:10 +02:00
parent c06589392b
commit 2dc7d1f510
3 changed files with 7 additions and 5 deletions

View File

@ -5,12 +5,13 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh # shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh . "$CURDIR"/../shell_config.sh
TMP_DIR=${CLICKHOUSE_TMP}${CLICKHOUSE_DATABASE} TMP_DIR=${CLICKHOUSE_TMP}/tmp
DATA_DIR=${CLICKHOUSE_TMP}/data
mkdir -p $TMP_DIR mkdir -p $TMP_DIR
mkdir -p $DATA_DIR
declare -a SearchTypes=("POLYGON" "POLYGON_SIMPLE" "POLYGON_INDEX_EACH" "POLYGON_INDEX_CELL") declare -a SearchTypes=("POLYGON" "POLYGON_SIMPLE" "POLYGON_INDEX_EACH" "POLYGON_INDEX_CELL")
DATA_DIR=${CURDIR}/${CLICKHOUSE_DATABASE}
tar -xf "${CURDIR}"/01037_test_data_search.tar.gz -C "${DATA_DIR}" tar -xf "${CURDIR}"/01037_test_data_search.tar.gz -C "${DATA_DIR}"
$CLICKHOUSE_CLIENT -n --query=" $CLICKHOUSE_CLIENT -n --query="

View File

@ -5,12 +5,13 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh # shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh . "$CURDIR"/../shell_config.sh
TMP_DIR=${CLICKHOUSE_TMP}${CLICKHOUSE_DATABASE} TMP_DIR=${CLICKHOUSE_TMP}/tmp
DATA_DIR=${CLICKHOUSE_TMP}/data
mkdir -p $TMP_DIR mkdir -p $TMP_DIR
mkdir -p $DATA_DIR
declare -a SearchTypes=("POLYGON_INDEX_EACH" "POLYGON_INDEX_CELL") declare -a SearchTypes=("POLYGON_INDEX_EACH" "POLYGON_INDEX_CELL")
DATA_DIR=${CURDIR}/${CLICKHOUSE_DATABASE}
tar -xf "${CURDIR}"/01037_test_data_perf.tar.gz -C "${DATA_DIR}" tar -xf "${CURDIR}"/01037_test_data_perf.tar.gz -C "${DATA_DIR}"
$CLICKHOUSE_CLIENT -n --query=" $CLICKHOUSE_CLIENT -n --query="

View File

@ -5,7 +5,7 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh # shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh . "$CURDIR"/../shell_config.sh
TMP_DIR=${CLICKHOUSE_TMP}${CLICKHOUSE_DATABASE} TMP_DIR=${CLICKHOUSE_TMP}/tmp
mkdir -p $TMP_DIR mkdir -p $TMP_DIR
$CLICKHOUSE_CLIENT -n --query=" $CLICKHOUSE_CLIENT -n --query="