From f9514e3386fe1907e240d7079f2251f9cd419cb3 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 31 Jul 2021 20:51:57 +0800 Subject: [PATCH] test/run-cli-tests: s/virtualenv/python -m venv/ so we don't need to use virtualenv python package for creating a virtualenv, the "venv" module in Python3 would suffice. see also https://docs.python.org/3/library/venv.html Signed-off-by: Kefu Chai --- src/test/run-cli-tests | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/test/run-cli-tests b/src/test/run-cli-tests index 0e94751ceaaea..9572c68342f05 100755 --- a/src/test/run-cli-tests +++ b/src/test/run-cli-tests @@ -1,11 +1,6 @@ #!/bin/sh set -e -if ! command -v virtualenv >/dev/null; then - echo "$0: virtualenv not installed, skipping python-using tests." 1>&2 - exit 1 -fi - SRCDIR="$(dirname "$0")" # build directory, if different, can be passed as an argument; @@ -30,7 +25,7 @@ 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 --python python3 "$VENV" && $VENV/bin/pip --log "$VENV"/log.txt \ + python3 -m venv "$VENV" && $VENV/bin/pip --log "$VENV"/log.txt \ install git+https://github.com/ceph/cram.git@0.7-error-dir#egg=cram fi -- 2.39.5