From: Ben Crocker <[email protected]> Using 'test -x' instead of 'dnf list installed' to test for the presence of rpmlint, don't need to redirect stdout/stderr.
Signed-off-by: Ben Crocker <[email protected]> --- 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 1a639dead873..093041d8cbfa 100644 --- a/redhat/self-test/1001-rpmlint.bats +++ b/redhat/self-test/1001-rpmlint.bats @@ -5,7 +5,7 @@ } @test "rpmlint" { - if ! test -x /usr/bin/rpmlint >& /dev/null + if ! test -x /usr/bin/rpmlint then skip "The rpmlint package is not installed" fi -- GitLab _______________________________________________ kernel mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
