mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
test(shell): remove obsolete test for background shell command output redirection
This commit is contained in:
@@ -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"
|
||||
)
|
||||
Reference in New Issue
Block a user