Fix expect integration test. (#78315)

The test can now run split on macOS.
pull/78316/head
Matt Clay 2 years ago committed by GitHub
parent 27d39be580
commit 61ea6c4a5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -109,10 +109,15 @@
foo: bar
register: chdir_result
- name: get remote_tmp_dir real path
raw: >
{{ ansible_python_interpreter }} -c 'import os; os.chdir("{{remote_tmp_dir}}"); print(os.getcwd())'
register: remote_tmp_dir_real_path
- name: assert chdir works
assert:
that:
- "'{{chdir_result.stdout |expanduser | realpath }}' == '{{remote_tmp_dir | expanduser | realpath}}'"
- "'{{chdir_result.stdout | trim}}' == '{{remote_tmp_dir_real_path.stdout | trim}}'"
- name: test timeout option
expect:

Loading…
Cancel
Save