]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/run-cli-tests: use cram from github
authorKefu Chai <kchai@redhat.com>
Sat, 23 Jan 2021 18:12:31 +0000 (02:12 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 26 Jan 2021 08:01:02 +0000 (09:01 +0100)
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>
(cherry picked from commit c74e614813d69ef38139e5e745873dc2a31b1c59)

src/test/run-cli-tests

index 1dd19748e35af6b80337278639e4ebf7d28a9e8a..0e94751ceaaea785cf72d6d5ad8fc0fb5d9266ff 100755 (executable)
@@ -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")"