summaryrefslogtreecommitdiffstats
path: root/src/test/pybind
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/pybind')
-rw-r--r--src/test/pybind/CMakeLists.txt2
-rwxr-xr-xsrc/test/pybind/test_ceph_argparse.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/test/pybind/CMakeLists.txt b/src/test/pybind/CMakeLists.txt
new file mode 100644
index 00000000000..bc91bce305d
--- /dev/null
+++ b/src/test/pybind/CMakeLists.txt
@@ -0,0 +1,2 @@
+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)
diff --git a/src/test/pybind/test_ceph_argparse.py b/src/test/pybind/test_ceph_argparse.py
index 4bf6c27f9bb..4c325f278e5 100755
--- a/src/test/pybind/test_ceph_argparse.py
+++ b/src/test/pybind/test_ceph_argparse.py
@@ -25,7 +25,8 @@ import re
import json
def get_command_descriptions(what):
- return os.popen("./get_command_descriptions " + "--" + what).read()
+ CEPH_BIN = os.environ['CEPH_BIN']
+ return os.popen(CEPH_BIN + "/get_command_descriptions " + "--" + what).read()
def test_parse_json_funcsigs():
commands = get_command_descriptions("all")