Merge pull request #4324 from AkihiroSuda/fix-get-runtimeversion
integration: assume TEST_RUNTIME to be io.containerd.runc.v2 by default
This commit is contained in:
commit
49b0743c1c
@ -508,10 +508,10 @@ func getLogDirPath(runtimeVersion, id string) string {
|
|||||||
|
|
||||||
func getRuntimeVersion() string {
|
func getRuntimeVersion() string {
|
||||||
switch rt := os.Getenv("TEST_RUNTIME"); rt {
|
switch rt := os.Getenv("TEST_RUNTIME"); rt {
|
||||||
case plugin.RuntimeRuncV1, plugin.RuntimeRuncV2:
|
case plugin.RuntimeLinuxV1:
|
||||||
return "v2"
|
|
||||||
default:
|
|
||||||
return "v1"
|
return "v1"
|
||||||
|
default:
|
||||||
|
return "v2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user