[bitbake-devel] [RFC][PATCH 2/2] fetch2/npm.py: refactor the npm fetcher

Mark Hatle mark.hatle at kernel.crashing.org
Wed Oct 23 20:16:31 UTC 2019



On 10/23/19 3:12 PM, Paul Eggleton wrote:
> On Thursday, 24 October 2019 3:27:11 AM NZDT Mark Hatle wrote:
>> On 10/23/19 8:08 AM, Jean-marie Lemetayer wrote:
>>> Thank you again. The former npm support does not have any tests so I did not
>>> think about it. I will add some basic tests in the v2.
>>
>> If you need some pointers on where and how to write the tests, please let me
>> know.  I've had to write a number of them for the gitsm fetcher.
>>
>> Hint: https://git.openembedded.org/bitbake/tree/lib/bb/tests/fetch.py
>>
>> Stuff I added is mostly found by looking for 'test_git_submodule...'
>>
>> I'd expect we need a new test_npm_.... series.
> 
> Right, but if the functionality now relies on code in OE, then to fully test it you'd need to add oe-selftest tests in OE as well.

Yes of course.. A fetch test for the core fetcher functionality, and an
oe-selftest for the overall OE functionality.

--Mark

> Cheers,
> Paul
> 
> 


More information about the bitbake-devel mailing list