On Sat, Sep 17, 2016 at 09:24:44PM -0400, Scott Wiersdorf via RT wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=117922 >
>
> Can you help me understand what you mean? The test suite should *not* run if the user already has a crontab installed. All OSes that I know of have exit code 0 when a crontab exists. I tried running the suite on Debian 8 and it runs as expected both without a crontab (tests run) and with a crontab installed (no tests run).
Oh, this part was not clear to me. I thought have_crontab()
was trying to detect the presence of a 'crontab'
command, not if the user has a crontab file. Your comment in
https://rt.cpan.org/Public/Bug/Display.html?id=59578#txn-921606
seemed to support this.
Having the tests skipped with 'no crontab available' when the user has
an installed crontab seems confusing to me.
Is this just a safety precaution? The test suite doesn't actually seem
to manipulate user crontabs - judging by strace it never calls the
crontab command except in the have_crontab() check.
Anyway, feel free to close this if it's working as it should. Apologies
for the noise.
Thanks again,
--
Niko Tyni ntyni@debian.org