[Buildroot] [PATCH v5 05/10] testing/tests/download: test case for git refs

Ricardo Martincoski ricardo.martincoski at gmail.com
Tue Feb 5 00:53:49 UTC 2019


Hello,

On Mon, Feb 04, 2019 at 05:48 PM, Arnout Vandecappelle wrote:

> On 12/05/2018 04:58, Ricardo Martincoski wrote:
> [snip]
>>  create mode 100644 support/testing/tests/download/br2-external/git-refs/Config.in
>>  create mode 100644 support/testing/tests/download/br2-external/git-refs/external.desc
>>  create mode 100644 support/testing/tests/download/br2-external/git-refs/external.mk
> 
>  I don't think it makes a whole lot of sense to make a separate external for
> this; it would seem easier to put everything in a single external (and move the
> br2_external setting to GitTestBase). But that can be fixed in a follow-up
> patch, so applied to master, thanks.

I don't remember if there was any reason to keep them separate.
Indeed it seems they can be merged. I will add to my todo list.

> 
> [snip]
>> +    def check_download(self, package):
>> +        # store downloaded tarball inside the output dir so the test infra
>> +        # cleans it up at the end
>> +        env = {"BR2_DL_DIR": os.path.join(self.builddir, "dl"),
>> +               "GITREMOTE_PORT_NUMBER": str(self.gitremote.port)}
>> +        self.b.build(["{}-dirclean".format(package),
>> +                      "{}-legal-info".format(package)],
> 
>  Here there's also a refactoring opportunity, since this function only differs
> with check_hash in this one line.

I will take a look.


Regards,
Ricardo


More information about the buildroot mailing list