From cd3b88d9e361f00f2fdafc404c1c8818c6fd91ea Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Wed, 26 Feb 2020 12:05:46 -0800 Subject: [PATCH] ignore the source command for now; Mac 10.14 uses /bin/sh rather than /bin/sh pointing to /bin/bash and we can't edit it because of SIP --- .../interpreter_discovery/complex_args.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/ansible/integration/interpreter_discovery/complex_args.yml b/tests/ansible/integration/interpreter_discovery/complex_args.yml index 89ab1403..9bb84f04 100644 --- a/tests/ansible/integration/interpreter_discovery/complex_args.yml +++ b/tests/ansible/integration/interpreter_discovery/complex_args.yml @@ -11,9 +11,18 @@ path: /tmp/fake state: touch + # TODO: this works in Mac 10.15 because sh defaults to bash + # but due to Mac SIP we can't write to /bin so we can't change + # /bin/sh to point to /bin/bash + # Mac 10.15 is failing python interpreter discovery tests from ansible 2.8.8 + # because Mac doesn't make default python /usr/bin/python anymore + # so for now, can't use `source` since it's a bash builtin + # - name: set python using sourced file + # set_fact: + # special_python: source /tmp/fake && python - name: set python using sourced file set_fact: - special_python: source /tmp/fake && python + special_python: source /tmp/fake || true && python - name: run get_url with specially-sourced python get_url: