mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
Persist setup dependency library path
This commit is contained in:
parent
119e63cd46
commit
1df7a4538c
@ -75,6 +75,17 @@ def test_setup_script_keeps_optional_binary_probes_quiet():
|
||||
assert 'if [ -n "$OPEN_BINARY" ] && [ -t 1 ]; then' in script
|
||||
|
||||
|
||||
def test_setup_script_persists_bootstrap_library_before_installing_dependencies():
|
||||
script = SETUP_SCRIPT.read_text()
|
||||
native_install = script.partition(': | "$ARCHIVEBOX_BINARY" init')[2]
|
||||
|
||||
persist_config = '"$ARCHIVEBOX_BINARY" config --set "ABXPKG_LIB_DIR=$ABXPKG_LIB_DIR"'
|
||||
install_dependencies = '"$ARCHIVEBOX_BINARY" install'
|
||||
|
||||
assert persist_config in native_install
|
||||
assert native_install.index(persist_config) < native_install.index(install_dependencies)
|
||||
|
||||
|
||||
def test_setup_script_moves_legacy_collection_without_moving_compose(tmp_path):
|
||||
script = SETUP_SCRIPT.read_text()
|
||||
function_prefix = script.partition("\ndocker_pull_archivebox() {")[0]
|
||||
|
||||
@ -420,6 +420,7 @@ cd "$ARCHIVEBOX_HOME_DIR"
|
||||
migrate_legacy_collection_dir
|
||||
cd ./data
|
||||
: | "$ARCHIVEBOX_BINARY" init # pipe in empty command to make sure stdin is closed
|
||||
"$ARCHIVEBOX_BINARY" config --set "ABXPKG_LIB_DIR=$ABXPKG_LIB_DIR"
|
||||
"$ARCHIVEBOX_BINARY" install
|
||||
# init shows version output at the end too
|
||||
echo
|
||||
|
||||
Loading…
Reference in New Issue
Block a user