Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1e7e941d
Commit
1e7e941d
authored
Apr 06, 2016
by
Vishnu kannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an option to focus or skip tests in the node e2e makefile rule.
Signed-off-by:
Vishnu kannan
<
vishnuk@google.com
>
parent
a437b8c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
Makefile
Makefile
+6
-2
e2e-node-test.sh
hack/e2e-node-test.sh
+4
-1
No files found.
Makefile
View file @
1e7e941d
...
...
@@ -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
...
...
hack/e2e-node-test.sh
View file @
1e7e941d
...
...
@@ -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'"
...
...
@@ -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
$?
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment