test: check retained state inside the actual configuration tree

This commit is contained in:
Kevin Yue committed 2026-11-15 00:54:18 +08:00
1 parent 343ed3b1e5
commit 0f85b259cd
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ foreach ($name in @('gpgui.exe', 'gpauth.exe')) {
$process = Start-Process (Join-Path $destination $name) -ArgumentList '--version' -PassThru -Wait $process = Start-Process (Join-Path $destination $name) -ArgumentList '--version' -PassThru -Wait
if ($process.ExitCode -ne 0) { throw "The installed $name cannot start." } if ($process.ExitCode -ne 0) { throw "The installed $name cannot start." }
} }
$state = Join-Path $env:LOCALAPPDATA 'GP Connect' $state = Join-Path $env:LOCALAPPDATA 'GP Connect\config\protected-state'
New-Item -ItemType Directory -Force $state | Out-Null New-Item -ItemType Directory -Force $state | Out-Null
$marker = Join-Path $state 'ci-install-retention' $marker = Join-Path $state 'ci-install-retention'
[IO.File]::WriteAllText($marker, 'retain user settings') [IO.File]::WriteAllText($marker, 'retain user settings')