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
a719a7d7
Commit
a719a7d7
authored
Dec 21, 2016
by
Random-Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use sudo when untar node e2e tar ball.
parent
4495af38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
remote.go
test/e2e_node/remote/remote.go
+3
-1
No files found.
test/e2e_node/remote/remote.go
View file @
a719a7d7
...
@@ -93,7 +93,9 @@ func RunRemote(suite TestSuite, archive string, host string, cleanup bool, junit
...
@@ -93,7 +93,9 @@ func RunRemote(suite TestSuite, archive string, host string, cleanup bool, junit
fmt
.
Sprintf
(
"tar -xzvf ./%s"
,
archiveName
),
fmt
.
Sprintf
(
"tar -xzvf ./%s"
,
archiveName
),
)
)
glog
.
V
(
2
)
.
Infof
(
"Extracting tar on %q"
,
host
)
glog
.
V
(
2
)
.
Infof
(
"Extracting tar on %q"
,
host
)
if
output
,
err
:=
SSH
(
host
,
"sh"
,
"-c"
,
cmd
);
err
!=
nil
{
// Do not use sudo here, because `sudo tar -x` will recover the file ownership inside the tar ball, but
// we want the extracted files to be owned by the current user.
if
output
,
err
:=
SSHNoSudo
(
host
,
"sh"
,
"-c"
,
cmd
);
err
!=
nil
{
// Exit failure with the error
// Exit failure with the error
return
""
,
false
,
fmt
.
Errorf
(
"failed to extract test archive: %v, output: %q"
,
err
,
output
)
return
""
,
false
,
fmt
.
Errorf
(
"failed to extract test archive: %v, output: %q"
,
err
,
output
)
}
}
...
...
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