From f80e6c3e39c8d389cf734f05038456fd20fafa8d Mon Sep 17 00:00:00 2001 From: pbr Date: Thu, 1 Oct 2026 21:43:41 +0200 Subject: [PATCH] fix(tests): load journal helpers in post-install test The test points LOCAL_SCRIPTS at a missing directory, so pmx_journal.sh was never sourced and it stopped at the first pmx_journal_context call. --- scripts/post_install/tests/test_post_install_audit_fixes.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/post_install/tests/test_post_install_audit_fixes.sh b/scripts/post_install/tests/test_post_install_audit_fixes.sh index b2e8eb09..bc62cdaa 100755 --- a/scripts/post_install/tests/test_post_install_audit_fixes.sh +++ b/scripts/post_install/tests/test_post_install_audit_fixes.sh @@ -35,6 +35,11 @@ msg_success() { :; } show_proxmenux_logo() { :; } clear() { :; } +# The scripts record their changes through the journal helpers. +PMX_JOURNAL_ROOT="$TEST_ROOT/journal" +# shellcheck disable=SC1091 +source "$SCRIPT_ROOT/../global/pmx_journal.sh" + sed \ -e "s|^LOCAL_SCRIPTS=.*|LOCAL_SCRIPTS=\"$TEST_ROOT/missing-scripts\"|" \ -e "s|^BASE_DIR=.*|BASE_DIR=\"$TEST_ROOT/state\"|" \