|
|
@@ -962,13 +962,16 @@ DO NOT re-run the same failed edit command. Running it again will lead to the sa
|
|
|
|
|
|
|
|
|
@pytest.mark.asyncio
|
|
|
-async def test_ipython_agentskills_fileop_pwd(temp_dir, box_class, enable_auto_lint):
|
|
|
+async def test_ipython_agentskills_fileop_pwd(
|
|
|
+ temp_dir, box_class, run_as_devin, enable_auto_lint
|
|
|
+):
|
|
|
"""Make sure that cd in bash also update the current working directory in ipython."""
|
|
|
|
|
|
runtime = await _load_runtime(
|
|
|
- temp_dir, box_class, enable_auto_lint=enable_auto_lint
|
|
|
+ temp_dir, box_class, run_as_devin, enable_auto_lint=enable_auto_lint
|
|
|
)
|
|
|
await _test_ipython_agentskills_fileop_pwd_impl(runtime, enable_auto_lint)
|
|
|
+
|
|
|
await runtime.close()
|
|
|
await asyncio.sleep(1)
|
|
|
|
|
|
@@ -1039,10 +1042,6 @@ async def test_ipython_agentskills_fileop_pwd_with_userdir(temp_dir, box_class):
|
|
|
await asyncio.sleep(1)
|
|
|
|
|
|
|
|
|
-@pytest.mark.skipif(
|
|
|
- TEST_RUNTIME.lower() == 'eventstream',
|
|
|
- reason='Skip this if we want to test EventStreamRuntime',
|
|
|
-)
|
|
|
@pytest.mark.skipif(
|
|
|
os.environ.get('TEST_IN_CI', 'false').lower() == 'true',
|
|
|
# FIXME: There's some weird issue with the CI environment.
|
|
|
@@ -1050,18 +1049,24 @@ async def test_ipython_agentskills_fileop_pwd_with_userdir(temp_dir, box_class):
|
|
|
)
|
|
|
@pytest.mark.asyncio
|
|
|
async def test_ipython_agentskills_fileop_pwd_agnostic_sandbox(
|
|
|
- temp_dir, enable_auto_lint, container_image
|
|
|
+ temp_dir, box_class, run_as_devin, enable_auto_lint, container_image
|
|
|
):
|
|
|
- """Make sure that cd in bash also update the current working directory in ipython."""
|
|
|
+ """Make sure that cd in bash also updates the current working directory in iPython."""
|
|
|
+
|
|
|
+ # NOTE: we only test for ServerRuntime, since EventStreamRuntime
|
|
|
+ # is image agnostic by design.
|
|
|
+ if box_class != 'server':
|
|
|
+ pytest.skip('Skip this if box_class is not server')
|
|
|
|
|
|
runtime = await _load_runtime(
|
|
|
temp_dir,
|
|
|
- # NOTE: we only test for ServerRuntime, since EventStreamRuntime is image agnostic by design.
|
|
|
- ServerRuntime,
|
|
|
+ box_class,
|
|
|
+ run_as_devin,
|
|
|
enable_auto_lint=enable_auto_lint,
|
|
|
container_image=container_image,
|
|
|
)
|
|
|
await _test_ipython_agentskills_fileop_pwd_impl(runtime, enable_auto_lint)
|
|
|
+
|
|
|
await runtime.close()
|
|
|
await asyncio.sleep(1)
|
|
|
|