added change log and integration test cases for unable to find pip in virutalenv with relative path

pull/83189/head
Thomas Wang 1 month ago
parent 889012e29e
commit 0c6a809ecc

@ -0,0 +1,2 @@
bugfixes:
- fix unable to find pip in the virtualenv when using relative path

@ -621,3 +621,17 @@
- pip_prereleases is successful
- pip_prereleases is not changed
- '"fallible==0.0.1a2" in pip_prereleases.stdout_lines'
#https://github.com/ansible/ansible/issues/81522
- name: Unable to find pip in the virtualenv when using relative path
pip:
chdir: checkout-dir # a relative path
requirements: "{{ remote_tmp_dir}}/pipreq.txt" #we dont care about what we are trying to install here
virtualenv: venv
virtualenv_command: python3 -m venv
register: pip_output # Registering the output of the pip task
- assert:
that:
- pip_output is successful
- '"checkout-dir/venv" in pip_output.virtualenv'

Loading…
Cancel
Save