[PATCH stable] tests: fix wireproto redirection test on systems without tls1.2
Augie Fackler
raf at durin42.com
Tue Nov 13 20:43:34 UTC 2018
# HG changeset patch
# User Augie Fackler <augie at google.com>
# 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
More information about the Mercurial-devel
mailing list