From 2663cac831f9bc70b80415fbdff5ca070caa9eee Mon Sep 17 00:00:00 2001 From: Daiane Angolini Date: Thu, 2 Apr 2026 13:12:57 -0300 Subject: [PATCH] lmp/bb-config: Add variable to debug CI_SCRIPT_DEBUG This variable will enable bash trace mode to the ci-scripts so we can generate more log in case of a problem. Signed-off-by: Daiane Angolini --- helpers.sh | 1 + lmp/bb-config.sh | 2 ++ lmp/bb-selftest.sh | 2 ++ 3 files changed, 5 insertions(+) diff --git a/helpers.sh b/helpers.sh index c5acc749..ce1cbb16 100644 --- a/helpers.sh +++ b/helpers.sh @@ -1,6 +1,7 @@ # Common helper functions for all scripts set -o pipefail +[ "${CI_SCRIPT_DEBUG-0}" = "1" ] && set -x function indent { sed 's/^/| /'; echo "|--" ;} function status { echo == $(date "+%F %T") $* ; } diff --git a/lmp/bb-config.sh b/lmp/bb-config.sh index d439060f..4edeb563 100755 --- a/lmp/bb-config.sh +++ b/lmp/bb-config.sh @@ -22,6 +22,8 @@ FIO_PUSH_BIN="${FIO_PUSH_BIN-/usr/bin/fiopush}" FIO_CHECK_BIN="${FIO_CHECK_BIN-/usr/bin/fiocheck}" OSTREE_API_VERSION="${OSTREE_API_VERSION-v2}" DEV_MODE="${DEV_MODE-0}" +# Enable bash trace mode (set -x) for debugging ci-scripts +CI_SCRIPT_DEBUG="${CI_SCRIPT_DEBUG-0}" BUILD_SDK="${BUILD_SDK-0}" LMP_ROLLBACK_PROTECTION_ENABLE="${LMP_ROLLBACK_PROTECTION_ENABLE-0}" DISABLE_LOGCONFIG="${DISABLE_LOGCONFIG-0}" diff --git a/lmp/bb-selftest.sh b/lmp/bb-selftest.sh index d1a1acce..ece3f286 100755 --- a/lmp/bb-selftest.sh +++ b/lmp/bb-selftest.sh @@ -1,5 +1,7 @@ #!/bin/bash -e +[ "${CI_SCRIPT_DEBUG-0}" = "1" ] && set -x + source setup-environment build # The oe-selftest reproducible is build in two step (A and B) and sharing