From 9024bdbc285c92c9183b39ff598dcad67f5fba82 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Tue, 26 Sep 2017 07:49:23 -0400 Subject: [PATCH] integration: Fix chdir in wrapper script Previously the wrapper changed to $WORKSPACE prior to executing the ansible-playbook command. This has the unintended consequence of preventing use of relative paths. Fix this by using absolute paths in wrapper script instead of changing directories. Signed-off-by: Chris Evich --- contrib/test/venv-ansible-playbook.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/test/venv-ansible-playbook.sh b/contrib/test/venv-ansible-playbook.sh index 5b21d64f..58704215 100755 --- a/contrib/test/venv-ansible-playbook.sh +++ b/contrib/test/venv-ansible-playbook.sh @@ -102,6 +102,5 @@ echo "Executing \"$WORKSPACE/.cri-o_venv/bin/ansible-playbook $@\"" echo # Execute command-line arguments under virtualenv -cd "$WORKSPACE" -source ./.cri-o_venv/bin/activate -./.cri-o_venv/bin/ansible-playbook $@ +source ${WORKSPACE}/.cri-o_venv/bin/activate +${WORKSPACE}/.cri-o_venv/bin/ansible-playbook $@