mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 15:22:38 -04:00
Check only for nginx installation in lock_test to decide to do the test
This commit is contained in:
parent
a9e2692237
commit
ed331d16ab
1 changed files with 3 additions and 3 deletions
|
|
@ -59,9 +59,9 @@ def set_up():
|
|||
command = set_up_command(config_dir, logs_dir, work_dir, nginx_dir)
|
||||
|
||||
dirs = [logs_dir, config_dir, work_dir]
|
||||
# A specific environment variable for Azure Pipelines is SYSTEM_TEAMFOUNDATIONSERVERURI.
|
||||
# If set, then we know we are on a CI job, and we test Nginx's lock.
|
||||
if os.environ.get('SYSTEM_TEAMFOUNDATIONSERVERURI') == 'true' or util.exe_exists('nginx'):
|
||||
# If Nginx is installed, do the test, otherwise skip it.
|
||||
# Issue https://github.com/certbot/certbot/issues/8121 tracks the work to remove this control.
|
||||
if util.exe_exists('nginx'):
|
||||
dirs.append(nginx_dir)
|
||||
else:
|
||||
logger.warning('Skipping Nginx lock tests')
|
||||
|
|
|
|||
Loading…
Reference in a new issue