mirror of
https://github.com/ceph/ceph
synced 2024-12-19 09:57:05 +00:00
7c1544c04c
before this change add_tox_test() always add "py3" to testenv, even the caller specifies TOX_ENVS explicitly. after this change, py3 is added only if the caller does not specify any TOX_ENVS. this change helps with the readability. Signed-off-by: Kefu Chai <kchai@redhat.com>
10 lines
226 B
CMake
10 lines
226 B
CMake
set(CEPH_BUILD_VIRTUALENV $ENV{TMPDIR})
|
|
if(NOT CEPH_BUILD_VIRTUALENV)
|
|
set(CEPH_BUILD_VIRTUALENV ${CMAKE_BINARY_DIR})
|
|
endif()
|
|
|
|
if(WITH_TESTS)
|
|
include(AddCephTest)
|
|
add_tox_test(qa TOX_ENVS py3 flake8 import-tasks)
|
|
endif()
|