From ead00335b83498914130912d106af5484230b943 Mon Sep 17 00:00:00 2001 From: Pavithra Date: Tue, 21 Jan 2025 01:02:49 +0530 Subject: [PATCH] Fix fiotest failure due to package dependency. nvdimm related packages are not getting installed for sles as they are under else condition, moved them out of else condition and added cmake and gcc-c++ dependent packages as compilation was failing due to missing packages. Signed-off-by: Pavithra --- io/disk/fiotest.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/io/disk/fiotest.py b/io/disk/fiotest.py index 2940d6931..9c4b8eb45 100755 --- a/io/disk/fiotest.py +++ b/io/disk/fiotest.py @@ -89,22 +89,23 @@ def setUp(self): self.cancel("btrfs is not supported with \ RHEL 7.4 onwards") + pkg_list = ['libaio-devel', 'cmake', 'gcc-c++'] if distro.detect().name in ['Ubuntu', 'debian']: - pkg_list = ['libaio-dev'] + pkg_list.append('libaio-dev') if fstype == 'btrfs': pkg_list.append('btrfs-progs') elif distro.detect().name is 'SuSE': - pkg_list = ['libaio1', 'libaio-devel'] + pkg_list.append('libaio1') else: - pkg_list = ['libaio', 'libaio-devel'] - if self.disk_type == 'nvdimm': - pkg_list.extend(['autoconf', 'pkg-config']) - if distro.detect().name == 'SuSE': - pkg_list.extend(['ndctl', 'libnuma-devel', - 'libndctl-devel']) - else: - pkg_list.extend(['ndctl', 'daxctl', 'numactl-devel', - 'ndctl-devel', 'daxctl-devel']) + pkg_list.append('libaio') + if self.disk_type == 'nvdimm': + pkg_list.extend(['autoconf', 'pkg-config']) + if distro.detect().name == 'SuSE': + pkg_list.extend(['ndctl', 'libnuma-devel', + 'libndctl-devel']) + else: + pkg_list.extend(['ndctl', 'daxctl', 'numactl-devel', + 'ndctl-devel', 'daxctl-devel']) if raid_needed: pkg_list.append('mdadm')