From 0c7602fb598e13f140243d6e2cf736b3e6c28afc Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 31 Jul 2017 13:09:29 -0700 Subject: [PATCH] Add potential work-around for expect on macOS. http://pexpect.readthedocs.io/en/stable/commonissues.html#truncated-output-just-before-child-exits --- test/integration/targets/expect/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/targets/expect/tasks/main.yml b/test/integration/targets/expect/tasks/main.yml index 00e0f2e7af1..dccff834760 100644 --- a/test/integration/targets/expect/tasks/main.yml +++ b/test/integration/targets/expect/tasks/main.yml @@ -61,7 +61,7 @@ - name: test chdir expect: - command: "pwd" + command: "/bin/sh -c 'pwd && sleep 1'" chdir: "{{output_dir}}" responses: foo: bar