]> git.apps.os.sepia.ceph.com Git - ceph.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)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 30 Jun 2021 19:04:18 +0000 (12:04 -0700)
otherwise the tests are not performed at all.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 49be76ce11085bd333b5b8b281d8676c5ed450c2)

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)