Commit e000ff08 authored by Random-Liu's avatar Random-Liu

Fix remote log fetching.

parent cc0406ca
......@@ -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.
var (
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)
)
glog.Infof("Test failed unexpectedly. Attempting to retreiving system logs (only works for nodes with journald)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment