On 04/12/2017 18:52, Slaven Rezic wrote:

Yes, that's from the test suite of my new module. Unfortunately there
does not seem to be a possibility to check whether sudo (password-less)
is possible without actually trying to run it and generate this security
message. The sudo-using tests make sense in some environments (e.g. on
travis-ci with sudo=true), but if testers find it too annoying I can
move them to xt/ and run them only on systems where it actually works.

If the test is sudo-specific then I don't have anything useful to say, but if it's just that some tests require root then take a look at File::Find::Rule::Permissions for a work-around I put in my tests. Anyone foolish enough to run all the tests as root will run them all, as will travis and my jenkins box, anything else will just skip those tests.

--
David Cantrell

Reply via email to