cri-integration: propagate ENABLE_CRI_SANDBOXES
sudo(8) strips environment variables by default. Explicitly set ENABLE_CRI_SANDBOXES so we can ensure we test the sbserver CRI implementation. Signed-off-by: Samuel Karp <samuelkarp@google.com>
This commit is contained in:
parent
25f4cf398a
commit
b92f3160a7
@ -165,8 +165,12 @@ run_containerd() {
|
||||
local report_dir=$1
|
||||
fi
|
||||
CMD=""
|
||||
if [ ! -z "${sudo}" ]; then
|
||||
if [ -n "${sudo}" ]; then
|
||||
CMD+="${sudo} "
|
||||
# sudo strips environment variables, so add ENABLE_CRI_SANDBOXES back if present
|
||||
if [ -n "${ENABLE_CRI_SANDBOXES}" ]; then
|
||||
CMD+="ENABLE_CRI_SANDBOXES='${ENABLE_CRI_SANDBOXES}' "
|
||||
fi
|
||||
fi
|
||||
CMD+="${PWD}/bin/containerd"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user