]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/xfstests_dev: change deps for xfstests-dev on ubuntu 32524/head
authorRishabh Dave <ridave@redhat.com>
Wed, 8 Jan 2020 06:29:21 +0000 (11:59 +0530)
committerRishabh Dave <ridave@redhat.com>
Sat, 18 Jan 2020 06:15:13 +0000 (11:45 +0530)
Rename python to python2 if Ubuntu distro release is 19 or later.

Fixes: https://tracker.ceph.com/issues/43522
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/xfstests_dev.py

index 918d474d3631c1a1b19d8769ced0f1c7e7878240..15330969ce31a788c294608964c8a48f2e4da96c 100644 (file)
@@ -119,6 +119,8 @@ class XFSTestsDev(CephFSTestCase):
             libacl1-dev libaio-dev xfsprogs libgdbm-dev gawk fio dbench \
             uuid-runtime python sqlite3""".split()
 
+            if version >= 19:
+                deps[deps.index('python')] ='python2'
             args = ['sudo', 'apt-get', 'install', '-y'] + deps
         else:
             raise RuntimeError('expected a yum based or a apt based system')