Module: check_mk
Branch: master
Commit: e7fdb90d91e34f549e25ff3a8082179959367c23
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e7fdb90d91e34f…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Tue Jan 30 11:57:23 2018 +0100
Fix Windows integration test wmi_cpuload
Relax regex by allowing optional minus '-' in front of one of the
counter values.
---
agents/windows/it/test_section_wmi_cpuload.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/windows/it/test_section_wmi_cpuload.py
b/agents/windows/it/test_section_wmi_cpuload.py
index 6a1f55c..4703d3f 100644
--- a/agents/windows/it/test_section_wmi_cpuload.py
+++ b/agents/windows/it/test_section_wmi_cpuload.py
@@ -32,7 +32,7 @@ def expected_output():
r'ProcessorQueueLength,SystemCallsPersec,SystemUpTime,Threads,'
r'Timestamp_Object,Timestamp_PerfTime,Timestamp_Sys100NS'),
(r'\d+,,\d+,,\d+,\d+,\d+,\d+,\d+,\d+,\d+,\d+,\d+,\d+,\d+,\d+,,\d+,'
- r'\-?\d+,\d+,\d+,\d+,\d+,\d+,\d+,\d+,\d+'),
+ r'\-?\d+,\d+,\d+,\-?\d+,\d+,\d+,\d+,\d+,\d+'),
re.escape(r'[computer_system]'),
(r'AdminPasswordStatus,AutomaticManagedPagefile,'
r'AutomaticResetBootOption,AutomaticResetCapability,BootOptionOnLimit,'