[bitbake-devel] [PATCH 4/4] toaster: Add tests for error message display on the build dashboard

Richard Purdie richard.purdie at linuxfoundation.org
Fri Oct 16 13:17:47 UTC 2015


On Thu, 2015-10-15 at 15:45 +0300, Ed Bartosh wrote:
> From: Elliot Smith <elliot.smith at intel.com>
> 
> Add tests to ensure that log messages with CRITICAL level and
> with EXCEPTION level are shown in the main errors display
> on the build dashboard.
> 
> [YOCTO #8320]
> 
> Signed-off-by: Elliot Smith <elliot.smith at intel.com>
> Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
> ---
>  lib/toaster/toastergui/tests.py | 91 ++++++++++++++++++++++++++++++++++++++++-
>  1 file changed, 89 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/toaster/toastergui/tests.py b/lib/toaster/toastergui/tests.py
> index 7c4bd39..29dd7fd 100644
> --- a/lib/toaster/toastergui/tests.py
> +++ b/lib/toaster/toastergui/tests.py
> @@ -26,15 +26,15 @@ from django.test.client import RequestFactory
>  from django.core.urlresolvers import reverse
>  from django.utils import timezone
>  
> -from orm.models import Project, Release, BitbakeVersion, Package
> +from orm.models import Project, Release, BitbakeVersion, Package, LogMessage
>  from orm.models import ReleaseLayerSourcePriority, LayerSource, Layer, Build
>  from orm.models import Layer_Version, Recipe, Machine, ProjectLayer, Target
>  from orm.models import CustomImageRecipe, ProjectVariable
>  from orm.models import Branch
>  
>  from toastergui.tables import SoftwareRecipesTable
> -from bs4 import BeautifulSoup
>  import json
> +from bs4 import BeautifulSoup
>  import re
 
Sadly this failed to apply to master, please send a version which
does...

Cheers,

Richard




More information about the bitbake-devel mailing list