Fix environment variables to be consistently set when using --system or --permanent (#515)

Also switch PostMessage to SendMessageWithTimeout and only send one if
environment variables actually changed.

Also, enable and fix --permanent unit tests.
This commit is contained in:
Chris Savoie
2020-10-09 12:58:59 -07:00
committed by GitHub
parent 107dc62dd7
commit 4fe6e492c0
3 changed files with 113 additions and 92 deletions

View File

@@ -91,12 +91,7 @@ jobs:
name: --permanent test
shell: powershell.exe
command: |
try {
scripts/test_permanent.ps1
} catch {
Write-Host "`n Error Message: [$($_.Exception.Message)"] -ForegroundColor Red
Write-Host "`n Line Number: "$_.InvocationInfo.ScriptLineNumber -ForegroundColor Red
}
scripts/test_permanent.ps1
build-docker-image:
executor: bionic