File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -311,11 +311,11 @@ type RawCommand struct {
311311 cmds []string
312312}
313313
314- func NewRawCommand (cmds []string ) RawCommand {
314+ func NewRawCommand (cmds []string , opts ... tcexec. ProcessOption ) RawCommand {
315315 return RawCommand {
316316 cmds : cmds ,
317317 ExecOptions : ExecOptions {
318- opts : []tcexec. ProcessOption {} ,
318+ opts : opts ,
319319 },
320320 }
321321}
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ func TestWithStartupCommand(t *testing.T) {
146146 Started : true ,
147147 }
148148
149- testExec := testcontainers .NewRawCommand ([]string {"touch" , "/tmp/ .testcontainers" })
149+ testExec := testcontainers .NewRawCommand ([]string {"touch" , ".testcontainers" }, exec . WithWorkingDir ( "/tmp" ) )
150150
151151 err := testcontainers .WithStartupCommand (testExec )(& req )
152152 require .NoError (t , err )
You can’t perform that action at this time.
0 commit comments