@@ -94,6 +94,7 @@ func TestShimExitsUponContainerDelete_Isolated(t *testing.T) {
94
94
containerd .WithNewSnapshot (snapshotName , image ),
95
95
containerd .WithNewSpec (
96
96
oci .WithProcessArgs ("sleep" , fmt .Sprintf ("%d" , testTimeout / time .Second )),
97
+ oci .WithDefaultPathEnv ,
97
98
),
98
99
)
99
100
require .NoError (t , err , "failed to create container %s" , containerName )
@@ -105,6 +106,7 @@ func TestShimExitsUponContainerDelete_Isolated(t *testing.T) {
105
106
containerd .WithNewSnapshot (snapshotName , image ),
106
107
containerd .WithNewSpec (
107
108
oci .WithProcessArgs ("sleep" , fmt .Sprintf ("%d" , testTimeout / time .Second )),
109
+ oci .WithDefaultPathEnv ,
108
110
),
109
111
)
110
112
require .Error (t , err , "should not be able to create additional container when no drives are available" )
@@ -610,7 +612,7 @@ func testCreateContainerWithSameName(t *testing.T, vmID string) {
610
612
require .NoError (t , err )
611
613
}
612
614
613
- withNewSpec := containerd .WithNewSpec (oci .WithProcessArgs ("echo" , "hello" ), firecrackeroci .WithVMID (vmID ))
615
+ withNewSpec := containerd .WithNewSpec (oci .WithProcessArgs ("echo" , "hello" ), firecrackeroci .WithVMID (vmID ), oci . WithDefaultPathEnv )
614
616
615
617
client , err := containerd .New (containerdSockPath , containerd .WithDefaultRuntime (firecrackerRuntime ))
616
618
require .NoError (t , err , "unable to create client to containerd service at %s, is containerd running?" , containerdSockPath )
@@ -691,7 +693,7 @@ func TestCreateTooManyContainers_Isolated(t *testing.T) {
691
693
image , err := client .Pull (ctx , guestDockerImage , containerd .WithPullUnpack , containerd .WithPullSnapshotter (naiveSnapshotterName ))
692
694
require .NoError (t , err , "failed to pull image %s, is the the %s snapshotter running?" , guestDockerImage , naiveSnapshotterName )
693
695
694
- runEchoHello := containerd .WithNewSpec (oci .WithProcessArgs ("echo" , "-n" , "hello" ), firecrackeroci .WithVMID ("reuse-same-vm" ))
696
+ runEchoHello := containerd .WithNewSpec (oci .WithProcessArgs ("echo" , "-n" , "hello" ), firecrackeroci .WithVMID ("reuse-same-vm" ), oci . WithDefaultPathEnv )
695
697
696
698
c1 , err := client .NewContainer (ctx ,
697
699
"c1" ,
0 commit comments