[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pybuild and not always preventing network connection in auto tests



On 11 December 2013 15:33, Dimitri John Ledkov <xnox@debian.org> wrote:
> On 11 December 2013 15:24, Olivier Berger
> <olivier.berger@telecom-sudparis.eu> wrote:
>> Hi.
>>
>> AFAIU, pybuild prevents accesses to the network.
>>
>> But this can be problematic during auto_tests that will perform HTTP
>> connections on a local HTTP server (I have such an example in rdflib's
>> auto tests [0]).
>>
>> Is there a way to avoid such a protection, possibly on a selective
>> number of tests ?
>>
>
> unexport http_proxy
> unexport https_proxy
> override_dh_auto_test:
>         dh_auto_test --buildsystem=pybuild
>

actually you probably need to set them to empty value; e.g.
http_proxy="" https_proxy="" dh_auto_test...., or export http_proxy\n
export https_proxy


-- 
Regards,

Dimitri.


Reply to: