diff options
author | Simon McVittie <smcv@debian.org> | 2021-10-28 11:16:39 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2021-10-28 12:49:16 +0100 |
commit | 5b434c4c5b9588aef3a285779e70c2b5441f63b0 (patch) | |
tree | cd336a73c30205271db4b1f37f14c94fb9b721b5 | |
parent | ec3f40f161a2068f073e666d2a3ecdeba98a8f68 (diff) |
tests: Pass -c -k options to zstd, too
Otherwise we get interactive prompts during testing, like this:
zstd: /*stdin*\: unexpected end of file
zstd: /*stdin*\: unexpected end of file
zstd: /*stdin*\: unexpected end of file
zstd: /*stdin*\: unexpected end of file
zstd: .../.pybuild/cpython3_3.9/build/4Khole_idts5mgb.img.zst already exists; overwrite (y/n) ?
Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://github.com/intel/bmap-tools/pull/88
Applied-upstream: 3.7, commit:18f21738a89a30b335421dc1292bde81e56853de
Gbp-Pq: Name tests-Pass-c-k-options-to-zstd-too.patch
-rw-r--r-- | tests/test_api_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_api_base.py b/tests/test_api_base.py index 11adeaa..39b83fa 100644 --- a/tests/test_api_base.py +++ b/tests/test_api_base.py @@ -91,7 +91,7 @@ def _generate_compressed_files(file_path, delete=True): ("xz", None, ".xz", "-c -k"), ("lzop", None, ".lzo", "-c -k"), ("lz4", None, ".lz4", "-c -k"), - ("zstd", None, ".zst", ""), + ("zstd", None, ".zst", "-c -k"), # The "-P -C /" trick is used to avoid silly warnings: # "tar: Removing leading `/' from member names" ("bzip2", "tar", ".tar.bz2", "-c -j -O -P -C /"), |