]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
perl: ensure all failures are caught
authorAlexander Kanavin <alex.kanavin@gmail.com>
Sun, 17 Sep 2023 09:38:39 +0000 (11:38 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Sep 2023 07:53:05 +0000 (08:53 +0100)
Sed expression may miss some failures, and | obscures
the non-zero return code which would otherwise indicate them.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/perl/files/run-ptest

index dad4d4291608eaa5b8ac32d9a26df89f125427a1..0547f818b22e8b67c49c93af3e33349d644ae2cf 100644 (file)
@@ -1,2 +1,2 @@
 #!/bin/sh
-cd t && PERL_BUILD_PACKAGING=1 ./TEST | sed -u -e 's|\(.*\) .* ok$|PASS: \1|' -e 's|\(.*\) .* skipped|SKIP: \1|' -e 's|\(.*\) \.\(.*\)|FAIL: \1|'
+{ cd t && PERL_BUILD_PACKAGING=1 ./TEST || echo "FAIL: perl" ; } | sed -u -e 's|\(.*\) .* ok$|PASS: \1|' -e 's|\(.*\) .* skipped|SKIP: \1|' -e 's|\(.*\) \.\(.*\)|FAIL: \1|'