]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/ceph-disk: use a Python2.7 compatible version of pytest 31254/head
authorAlfredo Deza <adeza@redhat.com>
Fri, 25 Oct 2019 15:49:54 +0000 (11:49 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 30 Oct 2019 14:07:06 +0000 (10:07 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 149ce7af588b9c052e41d687e722fee9b7255d7c)

qa/workunits/ceph-disk/ceph-disk.sh

index 6daecf4fad668b8f5de2dfcad0f5303cd18f0697..6851999b291e08e6b16edaea300661c84cd4f19a 100755 (executable)
@@ -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