[UT] fix unstable ut (#30976)
Signed-off-by: Kevin Xiaohua Cai <caixiaohua@starrocks.com>
This commit is contained in:
parent
eb81e90831
commit
5b047d8d09
|
|
@ -174,6 +174,7 @@ public:
|
|||
//config::max_cumulative_compaction_num_singleton_deltas = 5;
|
||||
config::max_compaction_concurrency = 10;
|
||||
config::enable_event_based_compaction_framework = false;
|
||||
config::vertical_compaction_max_columns_per_group = 5;
|
||||
Compaction::init(config::max_compaction_concurrency);
|
||||
|
||||
_default_storage_root_path = config::storage_root_path;
|
||||
|
|
|
|||
10
run-be-ut.sh
10
run-be-ut.sh
|
|
@ -240,7 +240,7 @@ test_files=`find ${STARROCKS_TEST_BINARY_DIR} -type f -perm -111 -name "*test" \
|
|||
if [[ $TEST_MODULE == '.*' || $TEST_MODULE == 'starrocks_test' ]]; then
|
||||
echo "Run test: ${STARROCKS_TEST_BINARY_DIR}/starrocks_test"
|
||||
if [ ${DRY_RUN} -eq 0 ]; then
|
||||
if [ -x ${GTEST_PARALLEL} ]; then
|
||||
if [ -x "${GTEST_PARALLEL}" ]; then
|
||||
${GTEST_PARALLEL} ${STARROCKS_TEST_BINARY_DIR}/starrocks_test \
|
||||
--gtest_filter=${TEST_NAME} \
|
||||
--serialize_test_cases ${GTEST_PARALLEL_OPTIONS}
|
||||
|
|
@ -250,13 +250,13 @@ if [[ $TEST_MODULE == '.*' || $TEST_MODULE == 'starrocks_test' ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
for test in $test_files
|
||||
for test_bin in $test_files
|
||||
do
|
||||
echo "Run test: $test"
|
||||
echo "Run test: $test_bin"
|
||||
if [ ${DRY_RUN} -eq 0 ]; then
|
||||
file_name=${test##*/}
|
||||
file_name=${test_bin##*/}
|
||||
if [ -z $RUN_FILE ] || [ $file_name == $RUN_FILE ]; then
|
||||
$test $GTEST_OPTIONS --gtest_filter=${TEST_NAME}
|
||||
$test_bin $GTEST_OPTIONS --gtest_filter=${TEST_NAME}
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in New Issue