Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #921 from Random-Liu/turn-off-fail-swap-on
Browse files Browse the repository at this point in the history
Turn off `--fail-swap-on` in node e2e test.
  • Loading branch information
Random-Liu committed Sep 18, 2018
2 parents d963c9c + 798977f commit 8d7b0e2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions hack/test-e2e-node.sh
Expand Up @@ -32,6 +32,9 @@ REPORT_DIR=${REPORT_DIR:-"/tmp/test-e2e-node"}
UPLOAD_LOG=${UPLOAD_LOG:-false}
# TIMEOUT is the timeout of the test.
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
if [[ -z "${GOPATH}" ]]; then
Expand Down Expand Up @@ -79,12 +82,13 @@ mkdir -p ${REPORT_DIR}
test_setup ${REPORT_DIR}

timeout "${TIMEOUT}" make test-e2e-node \
RUNTIME=remote \
CONTAINER_RUNTIME_ENDPOINT=unix://${CONTAINERD_SOCK} \
ARTIFACTS=${REPORT_DIR} \
TEST_ARGS='--kubelet-flags=--cgroups-per-qos=true \
--kubelet-flags=--cgroup-root=/ \
--prepull-images=false'
RUNTIME=remote \
CONTAINER_RUNTIME_ENDPOINT=unix://${CONTAINERD_SOCK} \
ARTIFACTS=${REPORT_DIR} \
TEST_ARGS='--kubelet-flags=--cgroups-per-qos=true \
--kubelet-flags=--cgroup-root=/ \
--kubelet-flags=--fail-swap-on='${FAIL_SWAP_ON}' \
--prepull-images=false'
test_exit_code=$?

test_teardown
Expand Down

0 comments on commit 8d7b0e2

Please sign in to comment.