File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -104,5 +104,3 @@ steps:
104
104
queue : " ${BUILDKITE_AGENT_META_DATA_QUEUE:-default}"
105
105
distro : " ${BUILDKITE_AGENT_META_DATA_DISTRO}"
106
106
hostname : " ${BUILDKITE_AGENT_META_DATA_HOSTNAME}"
107
-
108
-
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ const (
46
46
firecrackerBinaryPath = "firecracker"
47
47
firecrackerBinaryOverrideEnv = "FC_TEST_BIN"
48
48
49
- defaultJailerBinary = "jailer"
49
+ defaultJailerBinary = "jailer"
50
+ jailerBinaryOverrideEnv = "FC_TEST_JAILER_BIN"
50
51
51
52
defaultTuntapName = "fc-test-tap0"
52
53
tuntapOverrideEnv = "FC_TEST_TAP"
@@ -184,6 +185,7 @@ func TestJailerMicroVMExecution(t *testing.T) {
184
185
},
185
186
},
186
187
JailerCfg : & JailerConfig {
188
+ JailerBinary : getJailerBinaryPath (),
187
189
GID : Int (jailerGID ),
188
190
UID : Int (jailerUID ),
189
191
NumaNode : Int (0 ),
@@ -473,6 +475,13 @@ func getFirecrackerBinaryPath() string {
473
475
return filepath .Join (testDataPath , firecrackerBinaryPath )
474
476
}
475
477
478
+ func getJailerBinaryPath () string {
479
+ if val := os .Getenv (jailerBinaryOverrideEnv ); val != "" {
480
+ return val
481
+ }
482
+ return filepath .Join (testDataPath , defaultJailerBinary )
483
+ }
484
+
476
485
func getVmlinuxPath (t * testing.T ) string {
477
486
t .Helper ()
478
487
vmlinuxPath := filepath .Join (testDataPath , "./vmlinux" )
You can’t perform that action at this time.
0 commit comments