Patchwork [2,of,2,STABLE] test: properly gate a zstd section

login
register
mail settings
Submitter Pierre-Yves David
Date May 20, 2019, 5:12 a.m.
Message ID <0ac91ed80152c2ae7da7.1558329162@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/40141/
State Accepted
Headers show

Comments

Pierre-Yves David - May 20, 2019, 5:12 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1558329076 -7200
#      Mon May 20 07:11:16 2019 +0200
# Branch stable
# Node ID 0ac91ed80152c2ae7da78ab7ac5f737e0c7310cb
# Parent  bfdb8dfc2e52730eb9218522e1c25c28a329e76e
# EXP-Topic fix-stable
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 0ac91ed80152
test: properly gate a zstd section

This part of the test can't run if zstd is not available. This was caught by
--pure test (who don't support zstd).
Augie Fackler - May 20, 2019, 3:41 p.m.
On Mon, May 20, 2019 at 07:12:42AM +0200, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@octobus.net>
> # Date 1558329076 -7200
> #      Mon May 20 07:11:16 2019 +0200
> # Branch stable
> # Node ID 0ac91ed80152c2ae7da78ab7ac5f737e0c7310cb
> # Parent  bfdb8dfc2e52730eb9218522e1c25c28a329e76e
> # EXP-Topic fix-stable
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 0ac91ed80152
> test: properly gate a zstd section

queued, thanks for the build fixes

Patch

diff --git a/tests/test-repo-compengines.t b/tests/test-repo-compengines.t
--- a/tests/test-repo-compengines.t
+++ b/tests/test-repo-compengines.t
@@ -139,6 +139,8 @@  Test error cases
   abort: invalid value for `storage.revlog.zlib.level` config: 42
   [255]
 
+#if zstd
+
 checking zstd options
 =====================
 
@@ -194,3 +196,4 @@  Test error cases
   abort: invalid value for `storage.revlog.zstd.level` config: 42
   [255]
 
+#endif