diff --git a/messung_engine/waechter_regeln.ps1 b/messung_engine/waechter_regeln.ps1 index a78647f0..ed590049 100644 --- a/messung_engine/waechter_regeln.ps1 +++ b/messung_engine/waechter_regeln.ps1 @@ -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)') } diff --git a/tests/waechter_regeln_spec.ps1 b/tests/waechter_regeln_spec.ps1 index 0f8da23a..c8143a51 100644 --- a/tests/waechter_regeln_spec.ps1 +++ b/tests/waechter_regeln_spec.ps1 @@ -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'