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.
This commit is contained in:
pbr
2026-10-01 21:43:41 +02:00
parent 37a461c5e5
commit f80e6c3e39
@@ -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\"|" \