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
ef801875
Commit
ef801875
authored
Feb 17, 2015
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --test_args flag to hack/e2e.go.
Add a flag to allow passing options to the Ginkgo test runner, for example to pass --ginkgo.focus to run only particular specs.
parent
91714077
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
e2e.go
hack/e2e.go
+2
-1
No files found.
hack/e2e.go
View file @
ef801875
...
@@ -42,6 +42,7 @@ var (
...
@@ -42,6 +42,7 @@ var (
pushup
=
flag
.
Bool
(
"pushup"
,
false
,
"If true, push to e2e cluster if it's up, otherwise start the e2e cluster."
)
pushup
=
flag
.
Bool
(
"pushup"
,
false
,
"If true, push to e2e cluster if it's up, otherwise start the e2e cluster."
)
down
=
flag
.
Bool
(
"down"
,
false
,
"If true, tear down the cluster before exiting."
)
down
=
flag
.
Bool
(
"down"
,
false
,
"If true, tear down the cluster before exiting."
)
test
=
flag
.
Bool
(
"test"
,
false
,
"Run Ginkgo tests."
)
test
=
flag
.
Bool
(
"test"
,
false
,
"Run Ginkgo tests."
)
testArgs
=
flag
.
String
(
"test_args"
,
""
,
"Space-separated list of arguments to pass to Ginkgo test runner."
)
root
=
flag
.
String
(
"root"
,
absOrDie
(
filepath
.
Clean
(
filepath
.
Join
(
path
.
Base
(
os
.
Args
[
0
]),
".."
))),
"Root directory of kubernetes repository."
)
root
=
flag
.
String
(
"root"
,
absOrDie
(
filepath
.
Clean
(
filepath
.
Join
(
path
.
Base
(
os
.
Args
[
0
]),
".."
))),
"Root directory of kubernetes repository."
)
verbose
=
flag
.
Bool
(
"v"
,
false
,
"If true, print all command output."
)
verbose
=
flag
.
Bool
(
"v"
,
false
,
"If true, print all command output."
)
checkVersionSkew
=
flag
.
Bool
(
"check_version_skew"
,
true
,
""
+
checkVersionSkew
=
flag
.
Bool
(
"check_version_skew"
,
true
,
""
+
...
@@ -270,7 +271,7 @@ func Test() bool {
...
@@ -270,7 +271,7 @@ func Test() bool {
ValidateClusterSize
()
ValidateClusterSize
()
return
finishRunning
(
"Ginkgo tests"
,
exec
.
Command
(
filepath
.
Join
(
*
root
,
"hack/ginkgo-e2e.sh"
)))
return
finishRunning
(
"Ginkgo tests"
,
exec
.
Command
(
filepath
.
Join
(
*
root
,
"hack/ginkgo-e2e.sh"
)
,
strings
.
Fields
(
*
testArgs
)
...
))
}
}
// All nonsense below is temporary until we have go versions of these things.
// All nonsense below is temporary until we have go versions of these things.
...
...
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