mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-10-09 06:56:37 +00:00
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:
@@ -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\"|" \
|
||||
|
||||
Reference in New Issue
Block a user