@@ -962,13 +962,16 @@ async def _test_ipython_agentskills_fileop_pwd_impl(
962
962
963
963
964
964
@pytest .mark .asyncio
965
- async def test_ipython_agentskills_fileop_pwd (temp_dir , box_class , enable_auto_lint ):
965
+ async def test_ipython_agentskills_fileop_pwd (
966
+ temp_dir , box_class , run_as_devin , enable_auto_lint
967
+ ):
966
968
"""Make sure that cd in bash also update the current working directory in ipython."""
967
969
968
970
runtime = await _load_runtime (
969
- temp_dir , box_class , enable_auto_lint = enable_auto_lint
971
+ temp_dir , box_class , run_as_devin , enable_auto_lint = enable_auto_lint
970
972
)
971
973
await _test_ipython_agentskills_fileop_pwd_impl (runtime , enable_auto_lint )
974
+
972
975
await runtime .close ()
973
976
await asyncio .sleep (1 )
974
977
@@ -1039,29 +1042,31 @@ async def test_ipython_agentskills_fileop_pwd_with_userdir(temp_dir, box_class):
1039
1042
await asyncio .sleep (1 )
1040
1043
1041
1044
1042
- @pytest .mark .skipif (
1043
- TEST_RUNTIME .lower () == 'eventstream' ,
1044
- reason = 'Skip this if we want to test EventStreamRuntime' ,
1045
- )
1046
1045
@pytest .mark .skipif (
1047
1046
os .environ .get ('TEST_IN_CI' , 'false' ).lower () == 'true' ,
1048
1047
# FIXME: There's some weird issue with the CI environment.
1049
1048
reason = 'Skip this if in CI.' ,
1050
1049
)
1051
1050
@pytest .mark .asyncio
1052
1051
async def test_ipython_agentskills_fileop_pwd_agnostic_sandbox (
1053
- temp_dir , enable_auto_lint , container_image
1052
+ temp_dir , box_class , run_as_devin , enable_auto_lint , container_image
1054
1053
):
1055
- """Make sure that cd in bash also update the current working directory in ipython."""
1054
+ """Make sure that cd in bash also updates the current working directory in iPython."""
1055
+
1056
+ # NOTE: we only test for ServerRuntime, since EventStreamRuntime
1057
+ # is image agnostic by design.
1058
+ if box_class != 'server' :
1059
+ pytest .skip ('Skip this if box_class is not server' )
1056
1060
1057
1061
runtime = await _load_runtime (
1058
1062
temp_dir ,
1059
- # NOTE: we only test for ServerRuntime, since EventStreamRuntime is image agnostic by design.
1060
- ServerRuntime ,
1063
+ box_class ,
1064
+ run_as_devin ,
1061
1065
enable_auto_lint = enable_auto_lint ,
1062
1066
container_image = container_image ,
1063
1067
)
1064
1068
await _test_ipython_agentskills_fileop_pwd_impl (runtime , enable_auto_lint )
1069
+
1065
1070
await runtime .close ()
1066
1071
await asyncio .sleep (1 )
1067
1072
0 commit comments