]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/pybind: fix local variables for emacs 30537/head
authorKefu Chai <kchai@redhat.com>
Tue, 24 Sep 2019 06:51:49 +0000 (14:51 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 24 Sep 2019 06:57:09 +0000 (14:57 +0800)
* pass CEPH_BIN env variable if necessary
* do not 'make' unless necessary
* use `cmake --build` as developer might be using some different cmake
  generator for building ceph.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/pybind/test_ceph_argparse.py
src/test/pybind/test_ceph_daemon.py

index 64321c7a70ced46b1b2782ca6f7c3ecb541cfff6..cd1b4264345c9caf6136194497767daac7390022 100755 (executable)
@@ -1261,8 +1261,10 @@ class TestConfigKey(TestArgparse):
 
     def test_list(self):
         self.check_no_arg('config-key', 'list')
+
 # Local Variables:
-# compile-command: "cd ../.. ; make -j4 &&
-#  PYTHONPATH=pybind nosetests --stop \
-#  test/pybind/test_ceph_argparse.py # test_ceph_argparse.py:TestOSD.test_rm"
+# compile-command: "cd ../../..; cmake --build build --target get_command_descriptions -j4 &&
+#  CEPH_BIN=build/bin \
+#  PYTHONPATH=src/pybind nosetests --stop \
+#  src/test/pybind/test_ceph_argparse.py:TestOSD.test_rm"
 # End:
index 64a0ea39fe6882e76835ba8d6c58265fb83ad789..c2a96486ca32dfbe024e84719f802becbe34a42d 100755 (executable)
@@ -40,8 +40,9 @@ class TestDaemonWatcher(TestCase):
         dw = DaemonWatcher(None)
         # Can't count on having a tty available during tests, so only test the false case
         self.assertEqual(dw.supports_color(StringIO()), False)
+
 # Local Variables:
-# compile-command: "cd ../.. ; make -j4 &&
-#  PYTHONPATH=pybind nosetests --stop \
-#  test/pybind/test_ceph_daemon.py
+# compile-command: "cd ../../..;
+#  PYTHONPATH=src/pybind nosetests --stop \
+#  src/test/pybind/test_ceph_daemon.py"
 # End: