SA Bugzilla – Bug 6665
t/root_spamd*.t failing when 'sudo' is not available
Last modified: 2019-06-26 06:55:06 UTC
Looks like the t/root_spamd*.t family of tests is failing when a 'sudo' command is not available on the host. Something to do with a tainted PATH I think, needs investigating.
Created attachment 5664 [details] Check if sudo is installed If this patch is ok I will take care of similar occurrences in t/root_*
Fine by me. I was too lazy to do anything for this. :-D
+1
(In reply to Kevin A. McGrail from comment #3) > +1 To be clear, that's a +1 that Henrik is lazy AND a +1 to the sudo patch :-)
Fixed in commit r1862101.
Now that I read it carefully plan skip_all => "not running tests as root" unless eval { ($> == 0); }; If it was already checking that effective UID is root, what purpose does sudo even have?
In OpenBSD doas(1) is used instead of sudo(8) (recently ported to FreeBSD as well) so it still makes sense.