mirror of
https://github.com/containerd/containerd.git
synced 2026-08-08 17:11:15 +00:00
Forward RUNC_FLAVOR env var down to integration tests
Update Vagrantfile and cri-integration test runner to forward RUNC_FLAVOR to the test environment. Allows integration tests to conditionally skip testing certain cgroup mount setups when running against other runtimes that may not support them yet. Signed-off-by: Chris Henzie <chrishenzie@gmail.com>
This commit is contained in:
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@@ -278,6 +278,7 @@ EOF
|
||||
'GOTESTSUM_JSONFILE': ENV['GOTESTSUM_JSONFILE'],
|
||||
'GITHUB_WORKSPACE': '',
|
||||
'CGROUP_DRIVER': ENV['CGROUP_DRIVER'],
|
||||
'RUNC_FLAVOR': ENV['RUNC_FLAVOR'] || "runc",
|
||||
}
|
||||
sh.inline = <<~SHELL
|
||||
#!/usr/bin/env bash
|
||||
@@ -306,6 +307,7 @@ EOF
|
||||
'GOTEST': ENV['GOTEST'] || "go test",
|
||||
'REPORT_DIR': ENV['REPORT_DIR'],
|
||||
'CGROUP_DRIVER': ENV['CGROUP_DRIVER'],
|
||||
'RUNC_FLAVOR': ENV['RUNC_FLAVOR'] || "runc",
|
||||
}
|
||||
sh.inline = <<~SHELL
|
||||
#!/usr/bin/env bash
|
||||
|
||||
@@ -46,6 +46,10 @@ CMD=""
|
||||
if [ -n "${sudo}" ]; then
|
||||
CMD+="${sudo} "
|
||||
fi
|
||||
CMD+="env "
|
||||
if [ -n "${RUNC_FLAVOR:-}" ]; then
|
||||
CMD+="RUNC_FLAVOR=${RUNC_FLAVOR} "
|
||||
fi
|
||||
CMD+="${PWD}/bin/cri-integration.test"
|
||||
|
||||
${CMD} --test.run="${FOCUS}" --test.v \
|
||||
|
||||
Reference in New Issue
Block a user