From 61ea6c4a5b18198d2a094057c2b1c5287370623c Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 19 Jul 2022 17:27:37 -0700 Subject: [PATCH] Fix expect integration test. (#78315) The test can now run split on macOS. --- test/integration/targets/expect/tasks/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/integration/targets/expect/tasks/main.yml b/test/integration/targets/expect/tasks/main.yml index 7316b3e7340..d6f43f2c6ae 100644 --- a/test/integration/targets/expect/tasks/main.yml +++ b/test/integration/targets/expect/tasks/main.yml @@ -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: