From c1dd09331f6a4491657a6acaafee23fb3bf60db1 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Tue, 27 Jun 2023 01:30:13 +0300 Subject: [PATCH] fix test --- test/virtualenv.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/virtualenv.bats b/test/virtualenv.bats index c54268e..4084b4a 100644 --- a/test/virtualenv.bats +++ b/test/virtualenv.bats @@ -29,7 +29,7 @@ unstub_pyenv() { stub pyenv-exec "python2.7 -m venv --help : false" stub pyenv-exec "python2 -m venv --help : false" stub pyenv-exec "python -m venv --help : false" - stub pyenv-exec "virtualenv * : echo PYENV_VERSION=\${PYENV_VERSION} \"\$@\"" + stub pyenv-exec "virtualenv * : echo PYENV_VERSION=\${PYENV_VERSION} \"\$@\"; mkdir -p \"\$2/bin\"" stub pyenv-exec "python -s -m ensurepip : false" stub pyenv-exec "python -s */get-pip.py : true" stub curl true @@ -46,7 +46,7 @@ rehashed OUT assert_success for x in pydoc python-config python2-config python2.7-config; do - assert [[ -x "${PYENV_ROOT}/versions/2.7.11/envs/venv/bin/$x" ]] + assert [ -x "${PYENV_ROOT}/versions/2.7.11/envs/venv/bin/$x" ] done unstub_pyenv