From: Kefu Chai Date: Sat, 23 Jan 2021 18:12:31 +0000 (+0800) Subject: test/run-cli-tests: use cram from github X-Git-Tag: v16.2.0~242^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0e3da020b724db8e9a406e2825c25ed3ffeff2a5;p=ceph.git test/run-cli-tests: use cram from github to address the failure of WARNING: Built wheel for cram is invalid: Metadata 1.2 mandates PEP 440 version, but '0.5.0ceph.2011-01-14' is not Failed to build cram Signed-off-by: Kefu Chai (cherry picked from commit c74e614813d69ef38139e5e745873dc2a31b1c59) --- diff --git a/src/test/run-cli-tests b/src/test/run-cli-tests index 1dd19748e35a..0e94751ceaae 100755 --- a/src/test/run-cli-tests +++ b/src/test/run-cli-tests @@ -30,7 +30,8 @@ if [ ! -e "$CRAM_BIN" ]; then # patched cram to support that. See upstream ticket at # https://bitbucket.org/brodie/cram/issue/9/allow-read-only-directories-for-t # -- tv@inktank.com - virtualenv "$VENV" && $VENV/bin/pip --log "$VENV"/log.txt install "$SRCDIR/downloads/cram-0.5.0ceph.2011-01-14.tar.gz" + virtualenv --python python3 "$VENV" && $VENV/bin/pip --log "$VENV"/log.txt \ + install git+https://github.com/ceph/cram.git@0.7-error-dir#egg=cram fi SRCDIR_ABS="$(readlink -f "$SRCDIR")"