From b9e006a4db5691a2f73eecbb228f2a4031f7b4b0 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Wed, 8 Jan 2020 11:59:21 +0530 Subject: [PATCH] qa/xfstests_dev: change deps for xfstests-dev on ubuntu Rename python to python2 if Ubuntu distro release is 19 or later. Fixes: https://tracker.ceph.com/issues/43522 Signed-off-by: Rishabh Dave --- qa/tasks/cephfs/xfstests_dev.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qa/tasks/cephfs/xfstests_dev.py b/qa/tasks/cephfs/xfstests_dev.py index 918d474d363..15330969ce3 100644 --- a/qa/tasks/cephfs/xfstests_dev.py +++ b/qa/tasks/cephfs/xfstests_dev.py @@ -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') -- 2.39.5