mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 23:31:25 -07:00
Normalize usage of temp and tmp on tmp (#36221)
* Normalize usage of temp and tmp on tmp * Rename system_tmps system_tmpdirs * Add ANSIBLE_REMOTE_TMP spelling of environment variables
This commit is contained in:
parent
2678508d42
commit
06f73ad578
22 changed files with 99 additions and 92 deletions
|
@ -235,7 +235,7 @@ class TestActionBase(unittest.TestCase):
|
|||
ret = None
|
||||
if opt == 'admin_users':
|
||||
ret = ['root', 'toor', 'Administrator']
|
||||
elif opt == 'remote_temp':
|
||||
elif opt == 'remote_tmp':
|
||||
ret = '~/.ansible/tmp'
|
||||
|
||||
return ret
|
||||
|
@ -419,7 +419,7 @@ class TestActionBase(unittest.TestCase):
|
|||
mock_connection.socket_path = None
|
||||
mock_connection._shell.get_remote_filename.return_value = 'copy.py'
|
||||
mock_connection._shell.join_path.side_effect = os.path.join
|
||||
mock_connection._shell.tempdir = '/var/tmp/mytempdir'
|
||||
mock_connection._shell.tmpdir = '/var/tmp/mytempdir'
|
||||
|
||||
# we're using a real play context here
|
||||
play_context = PlayContext()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue