[oe-commits] Chong Lu : perl: fix the output format of all tests

git at git.openembedded.org git at git.openembedded.org
Fri Aug 22 17:35:28 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: a3d69983a2dce1bfd7bfe42f24048010e8f204ee
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a3d69983a2dce1bfd7bfe42f24048010e8f204ee

Author: Chong Lu <Chong.Lu at windriver.com>
Date:   Mon Aug 18 13:19:21 2014 +0800

perl: fix the output format of all tests

We should use "PASS:|FAIL:|SKIP: testname" to output results of ptest.

Signed-off-by: Chong Lu <Chong.Lu at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

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



More information about the Openembedded-commits mailing list