Module: check_mk
Branch: master
Commit: 470c7de4067b38dcf1b85e31d03fa8aa68be6aa8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=470c7de4067b38…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Apr 11 13:45:25 2019 +0200
Synched expected sizes with reality.
Change-Id: Iea63fe368ff54e30259737845985fda41641ef00
---
tests/packaging/test_files.py | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/tests/packaging/test_files.py b/tests/packaging/test_files.py
index 2dc9075..7dab14b 100644
--- a/tests/packaging/test_files.py
+++ b/tests/packaging/test_files.py
@@ -17,16 +17,19 @@ def test_package_built(version_path, what):
def _get_package_paths(version_path, what):
for filename in os.listdir(version_path):
- if filename.startswith("check-mk-") and
filename.endswith(".%s" % what):
+ if filename.startswith("check-mk-") and \
+ filename.endswith(".%s" % what) and \
+ not "-dbgsym_" in filename:
yield os.path.join(version_path, filename)
# In case packages grow/shrink this check has to be changed.
+# TODO: Handle Docker tar.gz differently?
@pytest.mark.parametrize("what,min_size,max_size", [
- ("rpm", 160 * 1024 * 1024, 235 * 1024 * 1024),
- ("deb", 128 * 1024 * 1024, 139 * 1024 * 1024),
- ("cma", 230 * 1024 * 1024, 241 * 1024 * 1024),
- ("tar.gz", 358 * 1024 * 1024, 428 * 1024 * 1024),
+ ("rpm", 168 * 1024 * 1024, 203 * 1024 * 1024),
+ ("deb", 132 * 1024 * 1024, 144 * 1024 * 1024),
+ ("cma", 243 * 1024 * 1024, 253 * 1024 * 1024),
+ ("tar.gz", 401 * 1024 * 1024, 443 * 1024 * 1024),
])
def test_package_sizes(version_path, what, min_size, max_size):
for pkg in _get_package_paths(version_path, what):