mirror of
https://github.com/containerd/containerd.git
synced 2026-10-28 09:35:10 +08:00
ci: pass TEST_RUNTIME explicitly to the runsc critest
The runsc job runs on ubuntu-latest, which is moving to Ubuntu 26.04,
whose sudo (sudo-rs) does not support -E ("preserving the entire
environment is not supported, '-E' is ignored"). critest.sh then fails
on the unset TEST_RUNTIME, the only variable the step did not pass
explicitly.
Pass it on the sudo command line with the others and drop -E.
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
1 file changed
+2
-1
@@ -765,8 +765,9 @@ jobs:
|
||||
cfg=$(mktemp /tmp/containerd-config-runsc-XXXXXX.toml)
|
||||
trap 'rm -f "$cfg"' EXIT
|
||||
script/runsc/write-containerd-runsc-config.sh "$cfg" "$CGROUP_DRIVER"
|
||||
sudo -E \
|
||||
sudo \
|
||||
CGROUP_DRIVER="$CGROUP_DRIVER" \
|
||||
TEST_RUNTIME="$TEST_RUNTIME" \
|
||||
CONTAINERD_CONFIG_FILE="$cfg" \
|
||||
GOMAXPROCS="$GOMAXPROCS" \
|
||||
GOMEMLIMIT="$GOMEMLIMIT" \
|
||||
|
||||
Reference in new issue
Block a user