Module: check_mk
Branch: master
Commit: 031cef01dd00e36fabebdcf85f4ccecea4036ef9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=031cef01dd00e3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Aug 28 13:19:08 2017 +0200
Fixed new test with sites using numbers in the name
Change-Id: Iccd467a3c64566c6dc2262e08493655ae04eead4
---
tests/bin/test_mkbackup.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/bin/test_mkbackup.py b/tests/bin/test_mkbackup.py
index 7ce64f2..70c6016 100644
--- a/tests/bin/test_mkbackup.py
+++ b/tests/bin/test_mkbackup.py
@@ -94,7 +94,8 @@ def _execute_backup(site, job_id="testjob"):
assert "C0:4E:D4:4B:B4:AB:8B:3F:B4:09:32:CE:7D:A6:CF:76" in stdout
# Extract and return backup id
- matches = re.search("Backup-ID:\s+(Check_MK-[a-zA-Z_+\.-]+-%s-complete)" %
job_id.replace("-", "\+"), stdout)
+ print stdout
+ matches = re.search("Backup-ID:\s+(Check_MK-[a-zA-Z0-9_+\.-]+-%s-complete)"
% job_id.replace("-", "\+"), stdout)
assert matches is not None
backup_id = matches.groups()[0]