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
7dc73a34
Commit
7dc73a34
authored
Dec 18, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18856 from pwittrock/etcd2
Auto commit by PR queue bot
parents
3700036f
41f5b0b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
run_e2e.go
test/e2e_node/runner/run_e2e.go
+17
-7
No files found.
test/e2e_node/runner/run_e2e.go
View file @
7dc73a34
...
...
@@ -77,9 +77,9 @@ func main() {
u
.
Add
(
1
)
}
w
:=
sync
.
WaitGroup
{}
for
_
,
h
:=
range
strings
.
Split
(
*
hosts
,
","
)
{
w
.
Add
(
1
)
results
:=
make
(
chan
error
)
hs
:=
strings
.
Split
(
*
hosts
,
","
)
for
_
,
h
:=
range
hs
{
go
func
(
host
string
)
{
out
,
err
:=
runTests
(
host
)
if
err
!=
nil
{
...
...
@@ -87,7 +87,7 @@ func main() {
}
else
{
glog
.
Infof
(
"Success Finished Host %s Test Suite %s"
,
host
,
out
)
}
w
.
Done
()
results
<-
err
}(
h
)
}
...
...
@@ -96,9 +96,19 @@ func main() {
WaitForUser
()
}
// Wait for the tests to finish
w
.
Wait
()
glog
.
Infof
(
"Done"
)
// Wait for all tests to complete and check for failures
errCount
:=
0
for
i
:=
0
;
i
<
len
(
hs
);
i
++
{
if
<-
results
!=
nil
{
errCount
++
}
}
// Set the exit code if there were failures
if
errCount
>
0
{
glog
.
Errorf
(
"Failure: %d errors encountered."
,
errCount
)
os
.
Exit
(
1
)
}
}
func
WaitForUser
()
{
...
...
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