mirror of
https://github.com/ceph/ceph
synced 2024-12-30 07:23:11 +00:00
Merge PR #50175 into main
* refs/pull/50175/head: cephfs: upgrade cephfs-shell's path wherever necessary Reviewed-by: Venky Shankar <vshankar@redhat.com> Reviewed-by: Dhairya Parmar <dparmar@redhat.com>
This commit is contained in:
commit
ae6f1b18be
@ -57,7 +57,7 @@ Options
|
||||
.. code:: bash
|
||||
|
||||
[build]$ python3 -m venv venv && source venv/bin/activate && pip3 install cmd2
|
||||
[build]$ source vstart_environment.sh && source venv/bin/activate && python3 ../src/tools/cephfs/cephfs-shell
|
||||
[build]$ source vstart_environment.sh && source venv/bin/activate && python3 ../src/tools/cephfs/shell/cephfs-shell
|
||||
|
||||
Commands
|
||||
========
|
||||
|
@ -1,7 +1,7 @@
|
||||
"""
|
||||
NOTE: For running this tests locally (using vstart_runner.py), export the
|
||||
path to src/tools/cephfs/cephfs-shell module to $PATH. Running
|
||||
"export PATH=$PATH:$(cd ../src/tools/cephfs && pwd)" from the build dir
|
||||
path to src/tools/cephfs/shell/cephfs-shell module to $PATH. Running
|
||||
"export PATH=$PATH:$(cd ../src/tools/cephfs/shell && pwd)" from the build dir
|
||||
will update the environment without hassles of typing the path correctly.
|
||||
"""
|
||||
from io import StringIO
|
||||
|
@ -68,7 +68,7 @@ if [ -n "$CEPH_BUILD_ROOT" ]; then
|
||||
[ -z "$OBJCLASS_PATH" ] && OBJCLASS_PATH=$CEPH_LIB/rados-classes
|
||||
# make install should install python extensions into PYTHONPATH
|
||||
elif [ -n "$CEPH_ROOT" ]; then
|
||||
[ -z "$CEPHFS_SHELL" ] && CEPHFS_SHELL=$CEPH_ROOT/src/tools/cephfs/cephfs-shell
|
||||
[ -z "$CEPHFS_SHELL" ] && CEPHFS_SHELL=$CEPH_ROOT/src/tools/cephfs/shell/cephfs-shell
|
||||
[ -z "$PYBIND" ] && PYBIND=$CEPH_ROOT/src/pybind
|
||||
[ -z "$CEPH_BIN" ] && CEPH_BIN=$CEPH_BUILD_DIR/bin
|
||||
[ -z "$CEPH_ADM" ] && CEPH_ADM=$CEPH_BIN/ceph
|
||||
|
Loading…
Reference in New Issue
Block a user