Patchwork [1/3] perl: fix the output format of all tests

login
register
mail settings
Submitter Chong.Lu@windriver.com
Date Aug. 5, 2014, 8:33 a.m.
Message ID <a7f4e445d762d3fe0c91840b0dc9c1ab625689fd.1407227521.git.Chong.Lu@windriver.com>
Download mbox | patch
Permalink /patch/77283/
State Accepted
Commit e46011cdee5f3bf427366b4cd526134fba54950d
Headers show

Comments

Chong.Lu@windriver.com - Aug. 5, 2014, 8:33 a.m.
We should use "PASS:|FAIL:|SKIP: testname" to output results of ptest.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
 meta/recipes-devtools/perl/perl-5.20.0/run-ptest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Chong.Lu@windriver.com - Aug. 11, 2014, 1:19 a.m.
ping

On 08/05/2014 04:33 PM, Chong Lu wrote:
> We should use "PASS:|FAIL:|SKIP: testname" to output results of ptest.
>
> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
> ---
>   meta/recipes-devtools/perl/perl-5.20.0/run-ptest | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/perl/perl-5.20.0/run-ptest b/meta/recipes-devtools/perl/perl-5.20.0/run-ptest
> index ed59b4b..1e2dd1b 100644
> --- a/meta/recipes-devtools/perl/perl-5.20.0/run-ptest
> +++ b/meta/recipes-devtools/perl/perl-5.20.0/run-ptest
> @@ -1,2 +1,2 @@
>   #!/bin/sh
> -cd t && ./TEST | sed -u -e 's/^\([^. \t]*\)\.\.\.\+ok/PASS: \1/' -e 's/^\([^. \t]*\)\.\.\.\+skipped/SKIP: \1/' -e 's/^\([^. \t]*\)\.\.\.\+\(.*\)/FAIL: \1\n\2/'
> +cd t && ./TEST | sed -u -e 's|\(.*\) .* ok$|PASS: \1|' -e 's|\(.*\) .* skipped|SKIP: \1|' -e 's|\(.*\) \.\(.*\)|FAIL: \1|'

Patch

diff --git a/meta/recipes-devtools/perl/perl-5.20.0/run-ptest b/meta/recipes-devtools/perl/perl-5.20.0/run-ptest
index ed59b4b..1e2dd1b 100644
--- a/meta/recipes-devtools/perl/perl-5.20.0/run-ptest
+++ b/meta/recipes-devtools/perl/perl-5.20.0/run-ptest
@@ -1,2 +1,2 @@ 
 #!/bin/sh
-cd t && ./TEST | sed -u -e 's/^\([^. \t]*\)\.\.\.\+ok/PASS: \1/' -e 's/^\([^. \t]*\)\.\.\.\+skipped/SKIP: \1/' -e 's/^\([^. \t]*\)\.\.\.\+\(.*\)/FAIL: \1\n\2/'
+cd t && ./TEST | sed -u -e 's|\(.*\) .* ok$|PASS: \1|' -e 's|\(.*\) .* skipped|SKIP: \1|' -e 's|\(.*\) \.\(.*\)|FAIL: \1|'