On 01/07/2017 04:55 PM, Noah Misch wrote:
> On Sat, Jan 07, 2017 at 04:37:47PM -0500, Andrew Dunstan wrote:
>> Here's a simple test that should help tell if your animal needs some extra
>> stuff installed. Run something like this on your animal, making sure that
>> the perl in your path is the one used to run the buildfarm client:
>>
>>
>> perl -MLWP::Simple -e 'head(q{https://www.postgresql.org});
> I get no complaint from that, but I also get no complaint from these:
>
> perl -MLWP::Simple -e 'head(q{https://nonsense.postgresql.org});'; echo $?
> perl -MLWP::Simple -e 'head(q{nonsense://nonsense});'; echo $?
>
> Maybe use this:
>
> perl -MData::Dumper -MLWP::Simple -e 'print Dumper [head(q{https://www.postgresql.org}) || "BAD"]'
>
Yeah, you're right. Or perhaps even more simply we could do:
perl -MLWP::Simple -e 'print qq{BAD\n} unless head(q{https://www.postgresql.org});'
cheers
andrew
--
Andrew Dunstan https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services