[OE-core] [PATCH v3 2/2] sstatetests: limit the number of signature comparisons when differ

Burton, Ross ross.burton at intel.com
Tue Aug 8 14:40:57 UTC 2017


On 7 August 2017 at 22:33, <leonardo.sandoval.gonzalez at linux.intel.com>
wrote:

> From: Leonardo Sandoval <leonardo.sandoval.gonzalez at linux.intel.com>
>
> For perfomance reasons, limit the number of signature comparisons when
> stamps differ. The limit set is hardcoded to 20.
>
> [YOCTO #11651]
>
> Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@
> linux.intel.com>
> ---
>  meta/lib/oeqa/selftest/cases/sstatetests.py | 40
> +++++++++++++++++++----------
>  1 file changed, 26 insertions(+), 14 deletions(-)
>
> diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py
> b/meta/lib/oeqa/selftest/cases/sstatetests.py
> index 0b36027918..6298443a18 100644
> --- a/meta/lib/oeqa/selftest/cases/sstatetests.py
> +++ b/meta/lib/oeqa/selftest/cases/sstatetests.py
> @@ -458,6 +458,25 @@ http_proxy = "http://example.com/"
>                      base = os.sep.join(root.rsplit(os.sep, 2)[-2:] +
> [name])
>                      f[base] = shash
>              return f
> +
> +        def compare_sigfiles(files, files1, files2, compare=False):
> +            for k in files:
> +                if k in files1 and k in files2:
> +                    i_sigfile += 1
>

Surely this is going to produce an i_sigfile is not defined error?

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170808/c289f41d/attachment-0002.html>


More information about the Openembedded-core mailing list