Skip to content

Commit

Permalink
Fix E2E agent log paths
Browse files Browse the repository at this point in the history
The path for the log file was incorrect. The logs are in the virtualized
LocalAppData/Ubuntu Pro/log
  • Loading branch information
EduardGomezEscandell committed Dec 1, 2023
1 parent e264334 commit 885d302
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion end-to-end/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ func filesToCleanUp() ([]string, error) {
}{
{prefixEnv: "LocalAppData", path: "Ubuntu Pro"},
{prefixEnv: "UserProfile", path: ".ubuntupro"},
{prefixEnv: "UserProfile", path: ".ubuntupro.logs"},
}

var out []string
Expand Down
2 changes: 1 addition & 1 deletion end-to-end/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func logWindowsAgentOnError(t *testing.T) {
return
}

logsPath := filepath.Join(packageDir, "LocalCache", "Local", common.LocalAppDataDir, ".ubuntupro.log")
logsPath := filepath.Join(packageDir, "LocalCache", "Local", common.LocalAppDataDir, "log")
out, err := os.ReadFile(logsPath)
if err != nil {
t.Logf("could not read Windows Agent's logs at %q: %v", logsPath, err)
Expand Down

0 comments on commit 885d302

Please sign in to comment.