Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Fix Rust terminal binary discovery test

Laith Weinbergerb4e3fb833a9e
diff --git a/tests/ci/test_rust_agent.py b/tests/ci/test_rust_agent.py
index 652737d29..794243992 100644
--- a/tests/ci/test_rust_agent.py
+++ b/tests/ci/test_rust_agent.py
@@ -2635,7 +2635,8 @@ def test_rust_terminal_binary_finds_default_terminal_install(monkeypatch, tmp_pa
binary = tmp_path / '.browser-use-terminal' / 'packages' / 'standalone' / 'current' / 'bin' / 'browser-use-terminal'
binary.parent.mkdir(parents=True)
- binary.write_text('#!/bin/sh\n')
+ binary.write_text('#!/bin/sh\nif [ "$1" = "--help" ]; then\n echo "sdk-server"\nfi\n')
+ binary.chmod(0o755)
monkeypatch.delenv('BROWSER_USE_TERMINAL_BINARY', raising=False)
monkeypatch.chdir(tmp_path)