From: Ben Crocker bcrocker@redhat.com
Use test -x instead of dnf to check for presence of rpmlint.
Signed-off-by: Ben Crocker bcrocker@redhat.com --- redhat/self-test/1001-rpmlint.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/redhat/self-test/1001-rpmlint.bats b/redhat/self-test/1001-rpmlint.bats index 15d9bb1e27db..1a639dead873 100644 --- a/redhat/self-test/1001-rpmlint.bats +++ b/redhat/self-test/1001-rpmlint.bats @@ -5,7 +5,7 @@ }
@test "rpmlint" { - if ! dnf list installed rpmlint >& /dev/null + if ! test -x /usr/bin/rpmlint >& /dev/null then skip "The rpmlint package is not installed" fi