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 <cevich@redhat.com>
This commit is contained in:
parent
493a72bbc9
commit
9024bdbc28
1 changed files with 2 additions and 3 deletions
|
@ -102,6 +102,5 @@ echo "Executing \"$WORKSPACE/.cri-o_venv/bin/ansible-playbook $@\""
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# Execute command-line arguments under virtualenv
|
# Execute command-line arguments under virtualenv
|
||||||
cd "$WORKSPACE"
|
source ${WORKSPACE}/.cri-o_venv/bin/activate
|
||||||
source ./.cri-o_venv/bin/activate
|
${WORKSPACE}/.cri-o_venv/bin/ansible-playbook $@
|
||||||
./.cri-o_venv/bin/ansible-playbook $@
|
|
||||||
|
|
Loading…
Reference in a new issue