From 0ed47f44ca04a7a1d6cec77ce0a2384fceaa60e0 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Fri, 25 Oct 2019 11:49:54 -0400 Subject: [PATCH] qa/ceph-disk: use a Python2.7 compatible version of pytest Signed-off-by: Alfredo Deza (cherry picked from commit 149ce7af588b9c052e41d687e722fee9b7255d7c) --- qa/workunits/ceph-disk/ceph-disk.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/workunits/ceph-disk/ceph-disk.sh b/qa/workunits/ceph-disk/ceph-disk.sh index 6daecf4fad66..6851999b291e 100755 --- a/qa/workunits/ceph-disk/ceph-disk.sh +++ b/qa/workunits/ceph-disk/ceph-disk.sh @@ -14,9 +14,9 @@ $PYTHON --version type pip -# newer versions of pytest (e.g. 3.7.0) seem to work fine with Python 2.7, -# so just grab the latest version -sudo -H pip install pytest +# pytest supports python 2.7 up until the pytest 4.6 release, the 5.x series +# supports Python 3 only +sudo -H pip install "pytest==4.6.6" $PYTHON -m pytest --version # complete the cluster setup done by the teuthology ceph task -- 2.47.3