Capture logs from burn integration tests
Rob Mensching committed
Dec 14, 2021 at 12:18 UTC
09aac160d5898d6b95cd1b43d2c5a62e085e6a17
2 files changed
+15
-1
.github/workflows/build.yml
+6
@@ -41,3 +41,9 @@ jobs:
41
with:
42
name: artifacts
43
path: build/artifacts/
44
+
45
+ - name: Save logs
46
+ uses: actions/upload-artifact@v2
47
+ with:
48
+ name: logs
49
+ path: build/logs/
src/test/burn/test_burn.cmd
+9
-1
@@ -12,7 +12,15 @@
12
msbuild -t:Build -Restore -p:Configuration=%_C% -warnaserror || exit /b
13
msbuild -t:Build -Restore -p:Configuration=%_C% TestData\TestData.proj || exit /b
14
15
-if /i "%RuntimeTestsEnabled%"=="true" dotnet test -c %_C% --no-build WixToolsetTest.BurnE2E
15
+@if not "%RuntimeTestsEnabled%"=="true" goto :LExit
16
17
+reg add HKLM\Software\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f
18
+reg add HKLM\Software\WOW6432Node\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f
19
+
20
+dotnet test -c %_C% --no-build WixToolsetTest.BurnE2E
21
+
22
+7z a "..\..\..\build\logs\test_burn_%GITHUB_RUN_ID%.zip" "%TEMP%\*.log" "%TEMP%\..\*.log"
23
+
24
+:LExit
25
@popd
26
@endlocal