mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
without pyargs, tests cannot be run from an empty directory
This commit is contained in:
parent
14e6401efc
commit
ed66ca22d0
1 changed files with 5 additions and 2 deletions
|
|
@ -17,8 +17,11 @@ LE_AUTO_SUDO="" VENV_PATH="$VENV_NAME" $LE_AUTO --no-bootstrap --version
|
|||
. $VENV_NAME/bin/activate
|
||||
"$PIP_INSTALL" pytest
|
||||
|
||||
# change to an empty directory to ensure CWD doesn't affect tests
|
||||
cd $(mktemp -d)
|
||||
# To run tests that aren't packaged in modules, run pytest
|
||||
# from the repo root. The directory structure should still
|
||||
# cause the installed packages to be tested while using
|
||||
# the tests available in the subdirectories.
|
||||
cd $REPO_ROOT
|
||||
|
||||
for module in $MODULES ; do
|
||||
echo testing $module
|
||||
|
|
|
|||
Loading…
Reference in a new issue