[stable-2.10] Constrain pexpect and ptyprocess (#73109)
The recent update of ptyprocess to 0.7.0 is incompatible with Python 2.6 and
is causing test failures.
* Add setup_pexpect role to expect test
(cherry picked from commit 003a9e890d
)
Co-authored-by: Sam Doooran <sdoran@redhat.com>
This commit is contained in:
parent
8f71aead87
commit
db41f2e384
5 changed files with 13 additions and 3 deletions
|
@ -1,2 +1,3 @@
|
||||||
shippable/posix/group2
|
shippable/posix/group2
|
||||||
destructive
|
destructive
|
||||||
|
needs/target/setup_pexpect
|
||||||
|
|
|
@ -16,9 +16,8 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
- name: Install test requirements
|
- name: Install test requirements
|
||||||
pip:
|
import_role:
|
||||||
name: pexpect
|
name: setup_pexpect
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: record the test_command file
|
- name: record the test_command file
|
||||||
set_fact: test_command_file={{output_dir | expanduser}}/test_command.py
|
set_fact: test_command_file={{output_dir | expanduser}}/test_command.py
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
pexpect == 4.8.0
|
||||||
|
ptyprocess < 0.7.0 ; python_version < '2.7' # ptyprocess >= 0.7.0 not compatible with Python 2.6
|
2
test/integration/targets/setup_pexpect/meta/main.yml
Normal file
2
test/integration/targets/setup_pexpect/meta/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
dependencies:
|
||||||
|
- setup_remote_tmp_dir
|
|
@ -1,4 +1,10 @@
|
||||||
|
- name: Copy constraints file
|
||||||
|
copy:
|
||||||
|
src: constraints.txt
|
||||||
|
dest: "{{ remote_tmp_dir }}/pexpect-constraints.txt"
|
||||||
|
|
||||||
- name: Install pexpect
|
- name: Install pexpect
|
||||||
pip:
|
pip:
|
||||||
name: pexpect
|
name: pexpect
|
||||||
|
extra_args: '--constraint "{{ remote_tmp_dir }}/pexpect-constraints.txt"'
|
||||||
state: present
|
state: present
|
||||||
|
|
Loading…
Reference in a new issue