Turn off --fail-swap-on
in node e2e test.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
parent
d963c9c58e
commit
798977f8b2
@ -32,6 +32,9 @@ REPORT_DIR=${REPORT_DIR:-"/tmp/test-e2e-node"}
|
|||||||
UPLOAD_LOG=${UPLOAD_LOG:-false}
|
UPLOAD_LOG=${UPLOAD_LOG:-false}
|
||||||
# TIMEOUT is the timeout of the test.
|
# TIMEOUT is the timeout of the test.
|
||||||
TIMEOUT=${TIMEOUT:-"40m"}
|
TIMEOUT=${TIMEOUT:-"40m"}
|
||||||
|
# FAIL_SWAP_ON makes kubelet fail when swap is on.
|
||||||
|
# Many dev environments run with swap on, so we don't fail by default.
|
||||||
|
FAIL_SWAP_ON=${FAIL_SWAP_ON:-"false"}
|
||||||
|
|
||||||
# Check GOPATH
|
# Check GOPATH
|
||||||
if [[ -z "${GOPATH}" ]]; then
|
if [[ -z "${GOPATH}" ]]; then
|
||||||
@ -84,6 +87,7 @@ timeout "${TIMEOUT}" make test-e2e-node \
|
|||||||
ARTIFACTS=${REPORT_DIR} \
|
ARTIFACTS=${REPORT_DIR} \
|
||||||
TEST_ARGS='--kubelet-flags=--cgroups-per-qos=true \
|
TEST_ARGS='--kubelet-flags=--cgroups-per-qos=true \
|
||||||
--kubelet-flags=--cgroup-root=/ \
|
--kubelet-flags=--cgroup-root=/ \
|
||||||
|
--kubelet-flags=--fail-swap-on='${FAIL_SWAP_ON}' \
|
||||||
--prepull-images=false'
|
--prepull-images=false'
|
||||||
test_exit_code=$?
|
test_exit_code=$?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user