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
769929ba
Commit
769929ba
authored
Jul 19, 2017
by
Di Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove redundant param in e2e_node/remote
parent
defbe453
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
remote.go
test/e2e_node/remote/remote.go
+3
-3
No files found.
test/e2e_node/remote/remote.go
View file @
769929ba
...
@@ -114,7 +114,7 @@ func RunRemote(suite TestSuite, archive string, host string, cleanup bool, image
...
@@ -114,7 +114,7 @@ func RunRemote(suite TestSuite, archive string, host string, cleanup bool, image
// Do not log the output here, let the caller deal with the test output.
// Do not log the output here, let the caller deal with the test output.
if
err
!=
nil
{
if
err
!=
nil
{
aggErrs
=
append
(
aggErrs
,
err
)
aggErrs
=
append
(
aggErrs
,
err
)
collectSystemLog
(
host
,
workspace
)
collectSystemLog
(
host
)
}
}
glog
.
V
(
2
)
.
Infof
(
"Copying test artifacts from %q"
,
host
)
glog
.
V
(
2
)
.
Infof
(
"Copying test artifacts from %q"
,
host
)
...
@@ -160,7 +160,7 @@ func getTestArtifacts(host, testDir string) error {
...
@@ -160,7 +160,7 @@ func getTestArtifacts(host, testDir string) error {
// collectSystemLog is a temporary hack to collect system log when encountered on
// collectSystemLog is a temporary hack to collect system log when encountered on
// unexpected error.
// unexpected error.
func
collectSystemLog
(
host
,
workspace
string
)
{
func
collectSystemLog
(
host
string
)
{
// Encountered an unexpected error. The remote test harness may not
// Encountered an unexpected error. The remote test harness may not
// have finished retrieved and stored all the logs in this case. Try
// have finished retrieved and stored all the logs in this case. Try
// to get some logs for debugging purposes.
// to get some logs for debugging purposes.
...
@@ -171,7 +171,7 @@ func collectSystemLog(host, workspace string) {
...
@@ -171,7 +171,7 @@ func collectSystemLog(host, workspace string) {
logPath
=
fmt
.
Sprintf
(
"/tmp/%s-%s"
,
getTimestamp
(),
logName
)
logPath
=
fmt
.
Sprintf
(
"/tmp/%s-%s"
,
getTimestamp
(),
logName
)
destPath
=
fmt
.
Sprintf
(
"%s/%s-%s"
,
*
resultsDir
,
host
,
logName
)
destPath
=
fmt
.
Sprintf
(
"%s/%s-%s"
,
*
resultsDir
,
host
,
logName
)
)
)
glog
.
V
(
2
)
.
Infof
(
"Test failed unexpectedly. Attempting to retr
ei
ving system logs (only works for nodes with journald)"
)
glog
.
V
(
2
)
.
Infof
(
"Test failed unexpectedly. Attempting to retr
ie
ving system logs (only works for nodes with journald)"
)
// Try getting the system logs from journald and store it to a file.
// Try getting the system logs from journald and store it to a file.
// Don't reuse the original test directory on the remote host because
// Don't reuse the original test directory on the remote host because
// it could've be been removed if the node was rebooted.
// it could've be been removed if the node was rebooted.
...
...
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