mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Fix remote log fetching.
This commit is contained in:
parent
cc0406ca26
commit
e000ff0872
@ -299,7 +299,7 @@ func RunRemote(archive string, host string, cleanup bool, junitFilePrefix string
|
|||||||
// journald nodes. We should have a more robust way to collect logs.
|
// journald nodes. We should have a more robust way to collect logs.
|
||||||
var (
|
var (
|
||||||
logName = "system.log"
|
logName = "system.log"
|
||||||
logPath = filepath.Join(workspace, 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.Infof("Test failed unexpectedly. Attempting to retreiving system logs (only works for nodes with journald)")
|
glog.Infof("Test failed unexpectedly. Attempting to retreiving system logs (only works for nodes with journald)")
|
||||||
|
Loading…
Reference in New Issue
Block a user