diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-12-22 21:09:53 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-12-22 21:26:16 +0100 |
commit | 354ae1de276a92b4d9b51f1b3278ebb919fe48b9 (patch) | |
tree | dfe319ccdaf2d13b9c786e64196b9d34424d00c9 /xtesting/core | |
parent | 07f409672cf9b22f0229b35ca988c942bf50cd32 (diff) |
Compress Campaign data (zip)
Change-Id: I7b46a88a181293297cc764026f2804d36a59955a
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit f187187c3afa730e94ffcdffd84e54494def306a)
Diffstat (limited to 'xtesting/core')
-rw-r--r-- | xtesting/core/campaign.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xtesting/core/campaign.py b/xtesting/core/campaign.py index 8419cf3a..60af3f46 100644 --- a/xtesting/core/campaign.py +++ b/xtesting/core/campaign.py @@ -162,7 +162,8 @@ class Campaign(): build_tag = env.get('BUILD_TAG') assert Campaign.dump_db() == Campaign.EX_OK assert Campaign.dump_artifacts() == Campaign.EX_OK - with zipfile.ZipFile('{}.zip'.format(build_tag), 'w') as zfile: + with zipfile.ZipFile('{}.zip'.format(build_tag), + 'w', zipfile.ZIP_DEFLATED) as zfile: zfile.write("{}.json".format(build_tag)) for root, _, files in os.walk(build_tag): for filename in files: |