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