I get an error when I try to apply this patch:

error: bitbake/lib/toaster/tests/builds/test_core_image_min.py: does not
exist in index

Could you please add the file to the repo and supply a new patch for it?

Thanks.
Elliot

On 5 May 2016 at 14:12, Michael Wood <[email protected]> wrote:

> Task.SSTATE_NA and Task.SSTATE_MISS are both valid conditions for the
> condition that a Task.OUTCOME_COVERED and Task.OUTCOME_PREBUILT.
>
> Signed-off-by: Michael Wood <[email protected]>
> ---
>  bitbake/lib/toaster/tests/builds/test_core_image_min.py | 13 ++++++++++---
>  1 file changed, 10 insertions(+), 3 deletions(-)
>
> diff --git a/bitbake/lib/toaster/tests/builds/test_core_image_min.py
> b/bitbake/lib/toaster/tests/builds/test_core_image_min.py
> index 87d29c7..dec0bfa 100644
> --- a/bitbake/lib/toaster/tests/builds/test_core_image_min.py
> +++ b/bitbake/lib/toaster/tests/builds/test_core_image_min.py
> @@ -115,12 +115,19 @@ class BuildCoreImageMinimal(BuildTest):
>      # be 0 (SSTATE_NA) - tc=833
>      def test_Task_If_Outcome_1_3_Sstate_Result_Must_Be_0(self):
>          tasks = Task.objects.filter(
> -            outcome__in=(1, 3)).values('id', 'sstate_result')
> +            outcome__in=(Task.OUTCOME_COVERED,
> +                         Task.OUTCOME_PREBUILT)).values('id',
> +                                                        'task_name',
> +                                                        'sstate_result')
>          cnt_err = []
>
>          for task in tasks:
> -            if (task['sstate_result'] != 0):
> -                cnt_err.append(task['id'])
> +            if (task['sstate_result'] != Task.SSTATE_NA and
> +                    task['sstate_result'] != Task.SSTATE_MISS):
> +                cnt_err.append({'id': task['id'],
> +                                'name': task['task_name'],
> +                                'sstate_result': task['sstate_result'],
> +                               })
>
>          self.assertEqual(len(cnt_err),
>                           0,
> --
> 2.7.4
>
> --
> _______________________________________________
> toaster mailing list
> [email protected]
> https://lists.yoctoproject.org/listinfo/toaster
>



-- 
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to