Add build, deploy and test sources
This commit is contained in:
1 parent
825be27efd
commit
b8dfcda031
115 files changed
+8548
No files matched your search
@@ -0,0 +1,20 @@
|
||||
# Уборка после тестов: закрыть окна ошибок AutoIt и завершить зависшие экземпляры.
|
||||
$ErrorActionPreference = 'SilentlyContinue'
|
||||
|
||||
$closed = 0
|
||||
Get-Process | Where-Object { $_.MainWindowTitle -match 'AutoIt Error' } | ForEach-Object {
|
||||
try { $_.CloseMainWindow() | Out-Null; $closed++ } catch {}
|
||||
}
|
||||
Start-Sleep -Milliseconds 500
|
||||
|
||||
Get-Process -Name 'test','PF_installer','AutoIt3' | ForEach-Object {
|
||||
try { $_.CloseMainWindow() | Out-Null } catch {}
|
||||
}
|
||||
Start-Sleep -Milliseconds 700
|
||||
Get-Process -Name 'test','PF_installer','AutoIt3' | ForEach-Object {
|
||||
try { $_.Kill() } catch {}
|
||||
}
|
||||
|
||||
$leftErr = (Get-Process | Where-Object { $_.MainWindowTitle -match 'AutoIt Error' }).Count
|
||||
$leftProc = (Get-Process -Name 'test','PF_installer','AutoIt3').Count
|
||||
"cleanup: закрыто окон $closed, окон ошибок осталось $leftErr, процессов осталось $leftProc"
|
||||
Reference in new issue
Block a user