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 <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2021-01-24 02:12:31 +08:00
parent 541b85e6ec
commit c74e614813

View File

@ -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")"