diff options
author | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2023-01-20 14:01:00 +0300 |
---|---|---|
committer | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2023-01-20 14:01:00 +0300 |
commit | 13f0a675b5ef85cd5d639f1c6e0a04bc68f87db3 (patch) | |
tree | 384f53341887161a52d41229b476f230d7499593 /cmake/common.cmake | |
parent | 7b19515d3ab24df987624b9011cb5e9630adb8b2 (diff) | |
download | ydb-13f0a675b5ef85cd5d639f1c6e0a04bc68f87db3.tar.gz |
External build system generator release 11
Update tools: yexport
Diffstat (limited to 'cmake/common.cmake')
-rw-r--r-- | cmake/common.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake index 5167cbde42..0feeb9aa22 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -227,7 +227,8 @@ function(add_yunittest) return() endif() - foreach(Idx RANGE ${SPLIT_FACTOR}) + math(EXPR LastIdx "${SPLIT_FACTOR} - 1") + foreach(Idx RANGE ${LastIdx}) add_test(NAME ${YUNITTEST_ARGS_NAME}_${Idx} COMMAND Python3::Interpreter ${CMAKE_SOURCE_DIR}/build/scripts/split_unittest.py --split-factor ${SPLIT_FACTOR} --shard ${Idx} $<TARGET_FILE:${YUNITTEST_ARGS_TEST_TARGET}> ${YUNITTEST_ARGS_TEST_ARG}) @@ -251,7 +252,8 @@ function(set_yunittest_property) return() endif() - foreach(Idx RANGE ${SPLIT_FACTOR}) + math(EXPR LastIdx "${SPLIT_FACTOR} - 1") + foreach(Idx RANGE ${LastIdx}) set_property(TEST ${YUNITTEST_ARGS_TEST}_${Idx} PROPERTY ${YUNITTEST_ARGS_PROPERTY} ${YUNITTEST_ARGS_UNPARSED_ARGUMENTS}) endforeach() endfunction() |