From 3f52c7aaa077e2f511505e1a305d5ebe67f99587 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 27 Apr 2026 22:29:45 +0800 Subject: [PATCH] test(shell): remove obsolete test for background shell command output redirection --- tests/unit/test_computer_shell_tool.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 tests/unit/test_computer_shell_tool.py diff --git a/tests/unit/test_computer_shell_tool.py b/tests/unit/test_computer_shell_tool.py deleted file mode 100644 index d8dfe4f8c..000000000 --- a/tests/unit/test_computer_shell_tool.py +++ /dev/null @@ -1,15 +0,0 @@ -from astrbot.core.tools.computer_tools.shell import ( - _redirect_background_stdout_command, -) - - -def test_background_shell_command_redirects_output_to_file(): - command = _redirect_background_stdout_command( - "python -c 'print(123)'", - output_path="/tmp/astrbot shell output.log", - local_runtime=False, - ) - - assert command == ( - "python -c 'print(123)' > \"/tmp/astrbot shell output.log\" 2>&1" - )