You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
781 B
YAML
28 lines
781 B
YAML
# #591: process CWD is not reset before start of module execution. This is
|
|
# usually fine, except for modules importing setuptools early, which attempts
|
|
# to call getcwd() before AnsibleModule has had a chance to clean up the
|
|
# process environment.
|
|
|
|
- name: regression/issue_591__setuptools_cwd_crash.yml
|
|
hosts: test-targets
|
|
tasks:
|
|
- include_tasks: _mitogen_only.yml
|
|
|
|
- custom_python_run_script:
|
|
script: |
|
|
import os
|
|
try:
|
|
os.chdir(module.tmpdir)
|
|
except:
|
|
# Ansible 2.3.
|
|
os.chdir(os.path.dirname(__file__))
|
|
|
|
# Will crash if process has a nonexistent CWD.
|
|
- custom_python_os_getcwd:
|
|
script: |
|
|
import os
|
|
self._connection.get_chain().call(os.getcwd)
|
|
tags:
|
|
- issue_591
|
|
- mitogen_only
|