Skip to content

Commit 0a0dbf6

Browse files
committed
Diagnostics update and stable for tests
1 parent c8fe1ea commit 0a0dbf6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Microsoft.Management.Configuration.Processor/DSCv3/Schema_2024_04/DSCv3.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ private static List<ProcessExecutionEnvironmentVariable> CreateEnvironmentVariab
273273
/// <returns>True if the exit code was not 0.</returns>
274274
private bool RunSynchronously(ProcessExecution processExecution)
275275
{
276-
this.processorSettings.DiagnosticsSink?.OnDiagnostics(DiagnosticLevel.Verbose, $"Starting process: {processExecution.CommandLine}");
276+
this.processorSettings.DiagnosticsSink?.OnDiagnostics(DiagnosticLevel.Verbose, $"Starting process: {processExecution.CommandLine}{(processExecution.Input == null ? string.Empty : $"\n--- Input Stream ---\n{processExecution.Input}")}");
277277

278278
processExecution.Start().WaitForExit();
279279

src/PowerShell/tests/Microsoft.WinGet.Configuration.Tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ BeforeAll {
2727
# [CLI ] MSStore install failed. ProductId: 9PCX3HX4HZ0Z HResult: 0x80010002
2828
# So install the DSCv3 package here.
2929
Import-Module Microsoft.WinGet.Client
30-
$installResult = Install-WingetPackage -Id 9PCX3HX4HZ0Z -Source msstore
30+
# We prefer to use preview (9PCX3HX4HZ0Z) to catch issues early, but if it causes blocking use stable (9NVTPZWRC6KQ) until it is resolved.
31+
$installResult = Install-WingetPackage -Id 9NVTPZWRC6KQ -Source msstore
3132
if ($installResult.Status -ne 'Ok')
3233
{
3334
Write-Error "Failed to install DSCv3 package. Status: $($installResult.Status). ExtendedErrorCode: $($installResult.ExtendedErrorCode)." -ErrorAction Stop

0 commit comments

Comments
 (0)