All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] oeqa/ptest: Modified regex to find FAILED testcases no just FAIL.
@ 2015-07-31  8:40 Lucian Musat
  2015-07-31 10:09 ` Paul Eggleton
  0 siblings, 1 reply; 2+ messages in thread
From: Lucian Musat @ 2015-07-31  8:40 UTC (permalink / raw)
  To: openembedded-core

Some ptests output failed tests as FAILED instead of FAIL, like glib and pango.

Bug #6601

Signed-off-by: Lucian Musat <george.l.musat@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()
 
-- 
2.1.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] oeqa/ptest: Modified regex to find FAILED testcases no just FAIL.
  2015-07-31  8:40 [PATCH] oeqa/ptest: Modified regex to find FAILED testcases no just FAIL Lucian Musat
@ 2015-07-31 10:09 ` Paul Eggleton
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2015-07-31 10:09 UTC (permalink / raw)
  To: Lucian Musat; +Cc: openembedded-core

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@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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-31 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-31  8:40 [PATCH] oeqa/ptest: Modified regex to find FAILED testcases no just FAIL Lucian Musat
2015-07-31 10:09 ` Paul Eggleton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.