Waechter-Regeln: auch die schnelle Fassungskette (farm-fassung-schnell) samt Baum ist Farm (sonst baute cargo neben dem Spiel weiter)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 22:50:49 +01:00
co-authored by Claude Opus 5.5
parent c4a6507178
commit b16b2b280a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ function Ist-Farm($p) {
if ($c -match 'farm-waechter') { return $false }
if ($n -match '^python' -and $c -match '\\messung\\farm\\|[\\/]scratch[\\/]farm_|pokerbench-farm|\\mehrtisch_last\\|\\last-wiedergabe\\') { return $true }
# Bau- und Pruefkette einer Fassung: ihr ganzer Baum (cargo, rustc, Python, Motoren) haelt mit an, sonst baute cargo neben dem Spiel weiter
if ($n -match 'powershell' -and $c -match 'farm-fassung-kette') { return $true }
if ($n -match 'powershell' -and $c -match 'farm-fassung-(kette|schnell)') { return $true }
return [bool]($n -match '^pokerbench-(farm|bodenprobe)')
}
+1
View File
@@ -91,6 +91,7 @@ Pruefe 'ohne AB_SPOT_EXE ist dieselbe Exe ausserhalb des Laeufers eine Messung'
# Farm-Waechter: Wurzeln und ihr Baum; nie Dienste, nie den Laeufer
Pruefe 'Ist-Farm: Treiber' (Ist-Farm ($alle | ? { $_.ProcessId -eq 30 })) 'True'
Pruefe 'Ist-Farm: Bau- und Pruefkette (powershell) samt Baum' (Ist-Farm (P 80 'powershell.exe' "powershell -Command & 'D:\Projects\pf-batterie\messung\farm\farm-fassung-kette.ps1' -Name x")) 'True'
Pruefe 'Ist-Farm: schnelle Fassungskette (powershell) samt Baum' (Ist-Farm (P 82 'powershell.exe' "powershell -Command & 'D:\Projects\pf-batterie\messung\farm\farm-fassung-schnell.ps1' -Name x")) 'True'
Pruefe 'Ist-Farm: andere powershell nicht' (Ist-Farm (P 81 'powershell.exe' 'powershell -File irgendwas.ps1')) 'False'
Pruefe 'Ist-Farm: GPU-Dienst nicht' (Ist-Farm ($alle | ? { $_.ProcessId -eq 21 })) 'False'
Pruefe 'Ist-Farm: Laeufer nicht' (Ist-Farm ($alle | ? { $_.ProcessId -eq 10 })) 'False'