]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/ceph-disk: use a Python2.7 compatible version of pytest 31166/head
authorAlfredo Deza <adeza@redhat.com>
Fri, 25 Oct 2019 15:49:54 +0000 (11:49 -0400)
committerAlfredo Deza <adeza@redhat.com>
Mon, 28 Oct 2019 12:11:22 +0000 (08:11 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
qa/workunits/ceph-disk/ceph-disk.sh

index 19737ccdc5e26229769fbba516d89c82379416ab..49f45ae84f9781fe8adf7a5f87a86bc75b4c5a00 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