mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-19 02:28:59 +00:00
Reset ephemeral Windows state before native lifecycle proof
This commit is contained in:
parent
3a6af11e86
commit
a9d215401e
3 changed files with 15 additions and 1 deletions
|
|
@ -113,6 +113,9 @@ func TestNativeWindowsSelfTestDoesNotPreseedLifecycleState(t *testing.T) {
|
|||
`$selfTestStateDir = Join-Path $env:RUNNER_TEMP 'pulse-agent-self-test'`,
|
||||
`$selfTestLogFile = Join-Path $selfTestStateDir 'pulse-agent.log'`,
|
||||
`--self-test --state-dir $selfTestStateDir --log-file $selfTestLogFile`,
|
||||
`Get-Service -Name 'PulseAgent' -ErrorAction SilentlyContinue`,
|
||||
`$lifecycleStateDir = Join-Path $env:ProgramData 'Pulse'`,
|
||||
`Remove-Item -Path $lifecycleStateDir -Recurse -Force`,
|
||||
}
|
||||
for _, needle := range required {
|
||||
if !strings.Contains(workflow, needle) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue