commit c3a05309568f1cb8c81017ab1aacd093c409a555
parent 12d06ae553f8c7cbf645151ae9a2c7b30a4a485a
Author: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>
Date: Fri, 16 Oct 2020 15:41:57 -0700
modified path for E2ETestLogs (#614)
* modified path for E2ETestLogs
* edited pipeline paths for e2e test logs
* change to full path
* use tempPath
* use temp and localappdata path
Diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
@@ -254,7 +254,7 @@ jobs:
- task: PublishBuildArtifacts@1
displayName: Publish E2E Tests Packaged x64 Log
inputs:
- PathtoPublish: 'C:\Users\VssAdministrator\AppData\Local\E2ETestLogs'
+ PathtoPublish: 'C:\Users\VssAdministrator\AppData\Local\Temp\E2ETestLogs'
ArtifactName: 'E2ETestPackagedx64Log'
publishLocation: 'Container'
condition: succeededOrFailed()
diff --git a/src/AppInstallerCLIE2ETests/TestCommon.cs b/src/AppInstallerCLIE2ETests/TestCommon.cs
@@ -230,13 +230,14 @@ namespace AppInstallerCLIE2ETests
}
/// <summary>
- /// Copies log files to the path %LOCALAPPDATA%\E2ETestLogs
+ /// Copies log files to the path %TEMP%\E2ETestLogs
/// </summary>
public static void PublishE2ETestLogs()
{
+ string tempPath = Path.GetTempPath();
string localAppDataPath = Environment.GetEnvironmentVariable("LocalAppData");
string testLogsSourcePath = Path.Combine(localAppDataPath, Constants.E2ETestLogsPath);
- string testLogsDestPath = Path.Combine(localAppDataPath, "E2ETestLogs");
+ string testLogsDestPath = Path.Combine(tempPath, "E2ETestLogs");
if (Directory.Exists(testLogsDestPath))
{