|
|
@@ -17,8 +17,7 @@ workspace_base = os.getenv('WORKSPACE_BASE')
|
|
|
)
|
|
|
def test_write_simple_script():
|
|
|
task = "Write a shell script 'hello.sh' that prints 'hello'. Do not ask me for confirmation at any point."
|
|
|
- controller = asyncio.run(main(task))
|
|
|
- asyncio.run(controller.close())
|
|
|
+ asyncio.run(main(task))
|
|
|
|
|
|
# Verify the script file exists
|
|
|
script_path = os.path.join(workspace_base, 'hello.sh')
|
|
|
@@ -58,8 +57,7 @@ def test_edits():
|
|
|
|
|
|
# Execute the task
|
|
|
task = 'Fix typos in bad.txt. Do not ask me for confirmation at any point.'
|
|
|
- controller = asyncio.run(main(task))
|
|
|
- asyncio.run(controller.close())
|
|
|
+ asyncio.run(main(task))
|
|
|
|
|
|
# Verify bad.txt has been fixed
|
|
|
text = """This is a stupid typo.
|