From: Alexander Kanavin Date: Mon, 16 Feb 2026 13:33:47 +0000 (+0100) Subject: lttng-tools: ensure that ptest errors are not suppressed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27817cda4b21d3d5f293d149411211d516448717;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git lttng-tools: ensure that ptest errors are not suppressed At some recent point lttng-tools ptests have quietly regressed, and most of them aren't executed anymore. Errors are printed on the console, but aren't reported as exit code from run-ptest. The reason is that exitcode was set to what sed returned, not make. The original reason for piping through sed was to unify /tmp/tmp.xxxx outputs for easier results comparison, but (after fixing the tests) I don't see such lines anymore, and in any case ensuring such regressions are caught is more important. With this fix, run-ptest and testimage starts to fail as it should. Signed-off-by: Alexander Kanavin Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-kernel/lttng/lttng-tools/run-ptest b/meta/recipes-kernel/lttng/lttng-tools/run-ptest index f4f7a3baea..e7edc03e96 100755 --- a/meta/recipes-kernel/lttng/lttng-tools/run-ptest +++ b/meta/recipes-kernel/lttng/lttng-tools/run-ptest @@ -31,7 +31,7 @@ validate_lttng_modules_present || { make -k -t all >error.log 2>&1 # Can specify a test e.g.: # -C tests/regression/ check TESTS='kernel/test_callstack' -make -k -s $makeargs check 2>error.log | sed -e 's#/tmp/tmp\...........#/tmp/tmp.XXXXXXXXXX#g' +make -k -s $makeargs check 2>error.log exitcode=$? if [ -e error.log ]; then cat error.log