diff --git a/dev_tools/packaging/verify-published-package.sh b/dev_tools/packaging/verify-published-package.sh index c453e5a4..4b4efacc 100755 --- a/dev_tools/packaging/verify-published-package.sh +++ b/dev_tools/packaging/verify-published-package.sh @@ -84,7 +84,7 @@ for PYTHON_VERSION in python3; do # Run tests. echo Installing pytest requirements - "${tmp_dir}/${PYTHON_VERSION}/bin/pip" install --quiet pytest + cat "${DEV_DEPS_FILE}" | grep pytest | xargs "${tmp_dir}/${PYTHON_VERSION}/bin/pip" install --quiet PY_VER=$(ls "${tmp_dir}/${PYTHON_VERSION}/lib") echo Running tests "${tmp_dir}/${PYTHON_VERSION}/bin/pytest" --quiet --disable-pytest-warnings "${tmp_dir}/${PYTHON_VERSION}/lib/${PY_VER}/site-packages/${PROJECT_NAME}"