File tree Expand file tree Collapse file tree 6 files changed +26
-9
lines changed Expand file tree Collapse file tree 6 files changed +26
-9
lines changed Original file line number Diff line number Diff line change
1
+ trivial :
2
+ - test_zos_copy_func.py - Add python encoding interpreter for async and parallel testing.
3
+ (https://github.com/ansible-collections/ibm_zos_core/pull/2026).
4
+
5
+ - test_zos_job_submit_func.py - Add python encoding interpreter for async and parallel testing.
6
+ (https://github.com/ansible-collections/ibm_zos_core/pull/2026).
7
+
8
+ - test_zos_operator_func.py - Add python encoding interpreter for async and parallel testing.
9
+ (https://github.com/ansible-collections/ibm_zos_core/pull/2026).
10
+
11
+ - test_zos_script_func.py - Add python encoding interpreter for async and parallel testing.
12
+ (https://github.com/ansible-collections/ibm_zos_core/pull/2026).
13
+
14
+ - test_zos_zfs_resize_func.py - Add python encoding interpreter for async and parallel testing.
15
+ (https://github.com/ansible-collections/ibm_zos_core/pull/2026).
Original file line number Diff line number Diff line change 239
239
_TAG_REDIR_IN: "txt"
240
240
_TAG_REDIR_OUT: "txt"
241
241
LANG: "C"
242
+ PYTHONSTDINENCODING: "cp1047"
242
243
243
244
tasks:
244
245
- name: Create a copy
Original file line number Diff line number Diff line change 410
410
_TAG_REDIR_IN: "txt"
411
411
_TAG_REDIR_OUT: "txt"
412
412
LANG: "C"
413
+ PYTHONSTDINENCODING: "cp1047"
413
414
414
415
tasks:
415
416
- name: Submit async job.
Original file line number Diff line number Diff line change 40
40
_TAG_REDIR_IN: "txt"
41
41
_TAG_REDIR_OUT: "txt"
42
42
LANG: "C"
43
+ PYTHONSTDINENCODING: "cp1047"
43
44
tasks:
44
45
- name: zos_operator
45
46
zos_operator:
58
59
ansible_host: {0}
59
60
ansible_ssh_private_key_file: {1}
60
61
ansible_user: {2}
61
- ansible_python_interpreter: {3}/bin/python{4} """
62
+ ansible_python_interpreter: {3}"""
62
63
63
64
64
65
def test_zos_operator_various_command (ansible_zos_module ):
@@ -222,12 +223,11 @@ def test_zos_operator_parallel_terminal(get_config):
222
223
hosts ,
223
224
ssh_key ,
224
225
user ,
225
- cut_python_path ,
226
- python_version
226
+ python_path
227
227
)), inventory ))
228
228
command = "(ansible-playbook -i {0} {1}) & (ansible-playbook -i {0} {1})" .format (
229
229
inventory ,
230
- playbook
230
+ playbook ,
231
231
)
232
232
stdout = os .system (command )
233
233
assert stdout == 0
Original file line number Diff line number Diff line change 73
73
_TAG_REDIR_IN: "txt"
74
74
_TAG_REDIR_OUT: "txt"
75
75
LANG: "C"
76
+ PYTHONSTDINENCODING: "cp1047"
76
77
77
78
tasks:
78
79
- name: Execute script in async mode.
Original file line number Diff line number Diff line change 43
43
_TAG_REDIR_IN: "txt"
44
44
_TAG_REDIR_OUT: "txt"
45
45
LANG: "C"
46
+ PYTHONSTDINENCODING: "cp1047"
46
47
tasks:
47
48
- name: Create ZFS.
48
49
block:
131
132
ansible_host: {0}
132
133
ansible_ssh_private_key_file: {1}
133
134
ansible_user: {2}
134
- ansible_python_interpreter: {3}/bin/python{4} """
135
+ ansible_python_interpreter: {3}"""
135
136
136
137
def make_temp_folder (hosts ):
137
138
"""Create a temporary file on a z/OS system and return its path."""
@@ -1031,8 +1032,7 @@ def test_no_auto_increase(get_config):
1031
1032
hosts ,
1032
1033
ssh_key ,
1033
1034
user ,
1034
- cut_python_path ,
1035
- python_version
1035
+ python_path
1036
1036
)), inventory ))
1037
1037
command = "ansible-playbook -i {0} {1}" .format (
1038
1038
inventory ,
@@ -1073,8 +1073,7 @@ def test_no_auto_increase_accept(get_config):
1073
1073
hosts ,
1074
1074
ssh_key ,
1075
1075
user ,
1076
- cut_python_path ,
1077
- python_version
1076
+ python_path
1078
1077
)), inventory ))
1079
1078
command = "ansible-playbook -i {0} {1}" .format (
1080
1079
inventory ,
You can’t perform that action at this time.
0 commit comments