Skip to content

Commit

Permalink
fs/xfstests: Update package dependency
Browse files Browse the repository at this point in the history
On SUSE some of the packages used by xfstest script are available
with a different name.

Update the __setUp_packages function accordingly to use the correct
package names.

Signed-off-by: Sachin Sant <[email protected]>
  • Loading branch information
sacsant committed Mar 27, 2024
1 parent 144455c commit 3fc8e18
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fs/xfstests.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,20 +177,21 @@ def __setUp_packages(self):
packages.extend(['acl', 'bc', 'indent', 'libtool', 'lvm2',
'xfsdump', 'psmisc', 'sed', 'libacl-devel',
'libattr-devel', 'libaio-devel', 'libuuid-devel',
'openssl-devel', 'xfsprogs-devel', 'gettext',
'libblkid-devel', 'lzo-devel', 'zlib-devel',
'e2fsprogs-devel', 'asciidoc', 'xmlto',
'libzstd-devel', 'systemd-devel', 'meson',
'gcc-c++'])
'xfsprogs-devel', 'gcc-c++'])
if self.detected_distro.name == 'rhel' and (
self.detected_distro.version.startswith('9')):
packages.extend(['inih-devel'])

if self.detected_distro.name == 'SuSE':
packages.extend(['libbtrfs-devel', 'libcap-progs',
'liburcu-devel', 'libinih-devel'])
'liburcu-devel', 'libinih-devel',
'libopenssl-devel', 'gettext-tools'])
else:
packages.extend(['btrfs-progs-devel', 'userspace-rcu-devel'])
packages.extend(['btrfs-progs-devel', 'userspace-rcu-devel'
'openssl-devel', 'gettext'])

packages_remove = ['indent', 'btrfs-progs-devel']
if self.detected_distro.name == 'rhel' and (
Expand Down

0 comments on commit 3fc8e18

Please sign in to comment.