From patchwork Tue Nov 13 20:43:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [stable] tests: fix wireproto redirection test on systems without tls1.2 From: Augie Fackler X-Patchwork-Id: 36561 Message-Id: <53b7b24c957b0ecbfb8c.1542141814@augie-macbookpro2.roam.corp.google.com> To: mercurial-devel@mercurial-scm.org Date: Tue, 13 Nov 2018 15:43:34 -0500 # HG changeset patch # User Augie Fackler # Date 1542141748 18000 # Tue Nov 13 15:42:28 2018 -0500 # Branch stable # Node ID 53b7b24c957b0ecbfb8c20dab0c820b07b12ddd0 # Parent 7e2c58b08e74514541101f5049eea8a1ff4ba4a7 tests: fix wireproto redirection test on systems without tls1.2 Our automated package builder has some ancient configuration that lacks modern TLS, which is how we noticed this. diff --git a/tests/test-wireproto-content-redirects.t b/tests/test-wireproto-content-redirects.t --- a/tests/test-wireproto-content-redirects.t +++ b/tests/test-wireproto-content-redirects.t @@ -30,6 +30,7 @@ 0 0 992f4779029a3df8d0666d00bb924f69634e2641 0000000000000000000000000000000000000000 0000000000000000000000000000000000000000 1 1 a988fb43583e871d1ed5750ee074c6d840bbbfc8 992f4779029a3df8d0666d00bb924f69634e2641 0000000000000000000000000000000000000000 +#if tls1.2 $ hg --config simplecache.redirectsfile=redirects.py serve -p $HGPORT -d --pid-file hg.pid -E error.log $ cat hg.pid > $DAEMON_PIDS @@ -357,6 +358,7 @@ Redirect targets advertised when configu } ] (sent 2 HTTP requests and * bytes; received * bytes in responses) (glob) +#endif Unknown protocol is filtered from compatible targets