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
175ca37b
Commit
175ca37b
authored
Nov 25, 2014
by
Joe Beda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trace-bash flag for e2e.go
parent
28df3cb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
e2e.go
hack/e2e.go
+4
-0
No files found.
hack/e2e.go
View file @
175ca37b
...
@@ -40,6 +40,7 @@ var (
...
@@ -40,6 +40,7 @@ var (
tests
=
flag
.
String
(
"tests"
,
""
,
"Run only tests in hack/e2e-suite matching this glob. Ignored if -test is set."
)
tests
=
flag
.
String
(
"tests"
,
""
,
"Run only tests in hack/e2e-suite matching this glob. Ignored if -test is set."
)
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."
)
trace_bash
=
flag
.
Bool
(
"trace-bash"
,
false
,
"If true, pass -x to bash to trace all bash commands"
)
checkVersionSkew
=
flag
.
Bool
(
"check_version_skew"
,
true
,
""
+
checkVersionSkew
=
flag
.
Bool
(
"check_version_skew"
,
true
,
""
+
"By default, verify that client and server have exact version match. "
+
"By default, verify that client and server have exact version match. "
+
"You can explicitly set to false if you're, e.g., testing client changes "
+
"You can explicitly set to false if you're, e.g., testing client changes "
+
...
@@ -172,6 +173,9 @@ func Test() (failed, passed []string) {
...
@@ -172,6 +173,9 @@ func Test() (failed, passed []string) {
func
runBash
(
stepName
,
bashFragment
string
)
bool
{
func
runBash
(
stepName
,
bashFragment
string
)
bool
{
cmd
:=
exec
.
Command
(
"bash"
,
"-s"
)
cmd
:=
exec
.
Command
(
"bash"
,
"-s"
)
if
*
trace_bash
{
cmd
.
Args
=
append
(
cmd
.
Args
,
"-x"
)
}
cmd
.
Stdin
=
strings
.
NewReader
(
bashWrap
(
bashFragment
))
cmd
.
Stdin
=
strings
.
NewReader
(
bashWrap
(
bashFragment
))
return
finishRunning
(
stepName
,
cmd
)
return
finishRunning
(
stepName
,
cmd
)
}
}
...
...
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