@@ -21,7 +21,7 @@ function createTestBashTool(options?: { niceness?: number }) {
2121 const tempDir = new TestTempDir ( "test-bash" ) ;
2222 const tool = createBashTool ( {
2323 cwd : process . cwd ( ) ,
24- runtime : createRuntime ( { type : "local" } ) ,
24+ runtime : createRuntime ( { type : "local" , workdir : "/tmp" } ) ,
2525 tempDir : tempDir . path ,
2626 ...options ,
2727 } ) ;
@@ -163,7 +163,7 @@ describe("bash tool", () => {
163163 const tempDir = new TestTempDir ( "test-bash-truncate" ) ;
164164 const tool = createBashTool ( {
165165 cwd : process . cwd ( ) ,
166- runtime : createRuntime ( { type : "local" } ) ,
166+ runtime : createRuntime ( { type : "local" , workdir : "/tmp" } ) ,
167167 tempDir : tempDir . path ,
168168 overflow_policy : "truncate" ,
169169 } ) ;
@@ -202,7 +202,7 @@ describe("bash tool", () => {
202202 const tempDir = new TestTempDir ( "test-bash-overlong-line" ) ;
203203 const tool = createBashTool ( {
204204 cwd : process . cwd ( ) ,
205- runtime : createRuntime ( { type : "local" } ) ,
205+ runtime : createRuntime ( { type : "local" , workdir : "/tmp" } ) ,
206206 tempDir : tempDir . path ,
207207 overflow_policy : "truncate" ,
208208 } ) ;
@@ -234,7 +234,7 @@ describe("bash tool", () => {
234234 const tempDir = new TestTempDir ( "test-bash-boundary" ) ;
235235 const tool = createBashTool ( {
236236 cwd : process . cwd ( ) ,
237- runtime : createRuntime ( { type : "local" } ) ,
237+ runtime : createRuntime ( { type : "local" , workdir : "/tmp" } ) ,
238238 tempDir : tempDir . path ,
239239 overflow_policy : "truncate" ,
240240 } ) ;
@@ -270,7 +270,7 @@ describe("bash tool", () => {
270270 const tempDir = new TestTempDir ( "test-bash-default" ) ;
271271 const tool = createBashTool ( {
272272 cwd : process . cwd ( ) ,
273- runtime : createRuntime ( { type : "local" } ) ,
273+ runtime : createRuntime ( { type : "local" , workdir : "/tmp" } ) ,
274274 tempDir : tempDir . path ,
275275 // overflow_policy not specified - should default to tmpfile
276276 } ) ;
@@ -302,7 +302,7 @@ describe("bash tool", () => {
302302 const tempDir = new TestTempDir ( "test-bash-100kb" ) ;
303303 const tool = createBashTool ( {
304304 cwd : process . cwd ( ) ,
305- runtime : createRuntime ( { type : "local" } ) ,
305+ runtime : createRuntime ( { type : "local" , workdir : "/tmp" } ) ,
306306 tempDir : tempDir . path ,
307307 } ) ;
308308
@@ -354,7 +354,7 @@ describe("bash tool", () => {
354354 const tempDir = new TestTempDir ( "test-bash-100kb-limit" ) ;
355355 const tool = createBashTool ( {
356356 cwd : process . cwd ( ) ,
357- runtime : createRuntime ( { type : "local" } ) ,
357+ runtime : createRuntime ( { type : "local" , workdir : "/tmp" } ) ,
358358 tempDir : tempDir . path ,
359359 } ) ;
360360
@@ -397,7 +397,7 @@ describe("bash tool", () => {
397397 const tempDir = new TestTempDir ( "test-bash-no-kill-display" ) ;
398398 const tool = createBashTool ( {
399399 cwd : process . cwd ( ) ,
400- runtime : createRuntime ( { type : "local" } ) ,
400+ runtime : createRuntime ( { type : "local" , workdir : "/tmp" } ) ,
401401 tempDir : tempDir . path ,
402402 } ) ;
403403
@@ -439,7 +439,7 @@ describe("bash tool", () => {
439439 const tempDir = new TestTempDir ( "test-bash-per-line-kill" ) ;
440440 const tool = createBashTool ( {
441441 cwd : process . cwd ( ) ,
442- runtime : createRuntime ( { type : "local" } ) ,
442+ runtime : createRuntime ( { type : "local" , workdir : "/tmp" } ) ,
443443 tempDir : tempDir . path ,
444444 } ) ;
445445
@@ -479,7 +479,7 @@ describe("bash tool", () => {
479479 const tempDir = new TestTempDir ( "test-bash-under-limit" ) ;
480480 const tool = createBashTool ( {
481481 cwd : process . cwd ( ) ,
482- runtime : createRuntime ( { type : "local" } ) ,
482+ runtime : createRuntime ( { type : "local" , workdir : "/tmp" } ) ,
483483 tempDir : tempDir . path ,
484484 } ) ;
485485
@@ -509,7 +509,7 @@ describe("bash tool", () => {
509509 const tempDir = new TestTempDir ( "test-bash-exact-limit" ) ;
510510 const tool = createBashTool ( {
511511 cwd : process . cwd ( ) ,
512- runtime : createRuntime ( { type : "local" } ) ,
512+ runtime : createRuntime ( { type : "local" , workdir : "/tmp" } ) ,
513513 tempDir : tempDir . path ,
514514 } ) ;
515515
0 commit comments