Skip to content

Commit

Permalink
Add an option to focus or skip tests in the node e2e makefile rule.
Browse files Browse the repository at this point in the history
Signed-off-by: Vishnu kannan <vishnuk@google.com>
  • Loading branch information
vishh committed Apr 7, 2016
1 parent a437b8c commit 1e7e941
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,14 @@ test_e2e:

# Build and run node end-to-end tests.
#
# Args:
# FOCUS: regexp that matches the tests to be run
# SKIP: regexp that matches the tests that needs to be skipped
# Example:
# make test_e2e_node
# make test_e2e_node FOCUS=kubelet SKIP=container
# Build and run tests.
test_e2e_node:
hack/e2e-node-test.sh
hack/e2e-node-test.sh FOCUS=$(FOCUS) SKIP=$(SKIP)
.PHONY: test_e2e_node


Expand Down
5 changes: 4 additions & 1 deletion hack/e2e-node-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/hack/lib/init.sh"
kube::golang::setup_env

focus=${FOCUS}
skip=${SKIP:-""}

ginkgo=$(kube::util::find-binary "ginkgo")
if [[ -z "${ginkgo}" ]]; then
echo "You do not appear to have ginkgo built. Try 'hack/build-go.sh github.com/onsi/ginkgo/ginkgo'"
Expand All @@ -26,6 +29,6 @@ fi

# Provided for backwards compatibility
sudo -v
"${ginkgo}" "${KUBE_ROOT}/test/e2e_node/" -- --alsologtostderr --v 2 --node-name $(hostname) --build-services=true --start-services=true --stop-services=true
"${ginkgo}" --focus=$focus --skip=$skip "${KUBE_ROOT}/test/e2e_node/" -- --alsologtostderr --v 2 --node-name $(hostname) --build-services=true --start-services=true --stop-services=true

exit $?

1 comment on commit 1e7e941

@k8s-teamcity-mesosphere

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity OSS :: Kubernetes Mesos :: 4 - Smoke Tests Build 20803 outcome was SUCCESS
Summary: Tests passed: 1, ignored: 269 Build time: 00:12:21

Please sign in to comment.