]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: run nose test using "python3 -m nose"
authorKefu Chai <kchai@redhat.com>
Wed, 9 Jun 2021 03:37:41 +0000 (11:37 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 14 Jun 2021 01:50:47 +0000 (09:50 +0800)
otherwise the tests are not performed at all.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/pybind/CMakeLists.txt

index bc91bce305dadacd1d9dc7f58304d38c7e142501..14f9b9f3a3e1b2729f4736416af153688ef79a5c 100644 (file)
@@ -1,2 +1,4 @@
-add_ceph_test(test_ceph_daemon.py ${CMAKE_CURRENT_SOURCE_DIR}/test_ceph_daemon.py)
-add_ceph_test(test_ceph_argparse.py ${CMAKE_CURRENT_SOURCE_DIR}/test_ceph_argparse.py)
+add_ceph_test(test_ceph_daemon.py
+  ${Python3_EXECUTABLE} -m nose ${CMAKE_CURRENT_SOURCE_DIR}/test_ceph_daemon.py)
+add_ceph_test(test_ceph_argparse.py
+  ${Python3_EXECUTABLE} -m nose ${CMAKE_CURRENT_SOURCE_DIR}/test_ceph_argparse.py)