Whamcloud - gitweb
LU-16862 rpm: set kmod-lustre-tests requires kmod-lustre explicitly 91/51191/6
authorXinliang Liu <xinliang.liu@linaro.org>
Thu, 1 Jun 2023 10:00:04 +0000 (10:00 +0000)
committerOleg Drokin <green@whamcloud.com>
Sat, 19 Aug 2023 05:37:27 +0000 (05:37 +0000)
Kmod-lustre-tests rpm should be installed along with kmod-lustre rpm
if there is one.

Test-Parameters: trivial
Change-Id: Ib265298381c317a03c4244f8ea380c6d64f0aef5
Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51191
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
rpm/kmp-lustre-tests.preamble

index ba488f1..f2b7420 100644 (file)
@@ -2,3 +2,6 @@ License:        GPL-2.0-only
 %if 0%{?suse_version} > 1
 Requires:       kernel-%1
 %endif
+%if %{with lustre_modules}
+Requires:       %{requires_kmod_name} = %{requires_kmod_version}
+%endif