[OE-core] [PATCH] oeqa/ptest: Modified regex to find FAILED testcases no just FAIL.

Paul Eggleton paul.eggleton at linux.intel.com
Fri Jul 31 10:09:49 UTC 2015


Hi Lucian,

On Friday 31 July 2015 11:40:25 Lucian Musat wrote:
> Some ptests output failed tests as FAILED instead of FAIL, like glib and
> pango.
> 
> Bug #6601
> 
> Signed-off-by: Lucian Musat <george.l.musat at intel.com>
> ---
>  meta/lib/oeqa/runtime/_ptest.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/lib/oeqa/runtime/_ptest.py
> b/meta/lib/oeqa/runtime/_ptest.py index 81c9c43..ba68234 100644
> --- a/meta/lib/oeqa/runtime/_ptest.py
> +++ b/meta/lib/oeqa/runtime/_ptest.py
> @@ -20,7 +20,7 @@ class PtestRunnerTest(oeRuntimeTest):
> 
>      # a ptest log parser
>      def parse_ptest(self, logfile):
> -        parser = Lparser(test_0_pass_regex="^PASS:(.+)",
> test_0_fail_regex="^FAIL:(.+)", section_0_begin_regex="^BEGIN:
> .*/(.+)/ptest", section_0_end_regex="^END: .*/(.+)/ptest") +        parser
> = Lparser(test_0_pass_regex="^PASS:(.+)",
> test_0_fail_regex="^FAIL(?:ED)?:(.+)", section_0_begin_regex="^BEGIN:
> .*/(.+)/ptest", section_0_end_regex="^END: .*/(.+)/ptest") parser.init()
>          result = Result()

I thought the way ptest was supposed to work was that ptest output would be
modified to match Automake format rather than us accepting different values:

http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#testing-packages-with-ptest

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the Openembedded-core mailing list