ceph/qa/CMakeLists.txt
Kefu Chai 14722092fd cmake: add import-tasks to run-tox-qa test
to ensure that qa suites are python3 compatible

Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-03-27 14:54:37 +08:00

10 lines
228 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 flake8-py2 flake8-py3 import-tasks)
endif()