Skip to content

Commit

Permalink
move test_task to tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Sep 21, 2024
1 parent bd13229 commit f60a087
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agenthub/codeact_agent/action_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def parse(self, action_str: str) -> Action:
), 'self.finish_command should not be None when parse is called'
thought = action_str.replace(self.finish_command.group(0), '').strip()
if not self.is_finish2 and os.getenv('SWE_BENCH') == '1':
return CmdRunAction('pytest /testbed/.test_task.py', thought='')
return CmdRunAction('pytest /tmp/.test_task.py', thought='')
return AgentFinishAction(thought=thought)


Expand Down
2 changes: 1 addition & 1 deletion evaluation/swe_bench/run_infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def initialize_runtime(
{test_code}
print('End the task with <finish2></finish2>')
"""
create_file('/testbed/.test_task.py', FILE_CONTENT)
create_file('/tmp/.test_task.py', FILE_CONTENT)
'''
action = IPythonRunCellAction(test_code)
logger.info(action, extra={'msg_type': 'ACTION'})
Expand Down

0 comments on commit f60a087

Please sign in to comment.