Skip browser opening in headless setup

This commit is contained in:
Nick Sweeting 2026-08-01 05:08:56 -07:00
parent 83ee111dcc
commit 119e63cd46
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -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):

View File

@ -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
}