mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
Skip browser opening in headless setup
This commit is contained in:
parent
83ee111dcc
commit
119e63cd46
@ -72,6 +72,7 @@ def test_setup_script_keeps_optional_binary_probes_quiet():
|
||||
|
||||
assert "resolve_setup_binary open env false 2>/dev/null" in script
|
||||
assert "resolve_setup_binary docker env false 2>/dev/null" in script
|
||||
assert 'if [ -n "$OPEN_BINARY" ] && [ -t 1 ]; then' in script
|
||||
|
||||
|
||||
def test_setup_script_moves_legacy_collection_without_moving_compose(tmp_path):
|
||||
|
||||
@ -201,7 +201,7 @@ wait_for_archivebox() {
|
||||
}
|
||||
|
||||
open_archivebox() {
|
||||
if [ -n "$OPEN_BINARY" ]; then
|
||||
if [ -n "$OPEN_BINARY" ] && [ -t 1 ]; then
|
||||
"$OPEN_BINARY" "http://127.0.0.1:8000" || true
|
||||
fi
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user