Commit b33ad76473500821ab6b0ff6cd3c5ee3accfe533

Patrick Steinhardt 2020-02-04T11:26:57

azure: tests: re-run flaky proxy tests The proxy tests regularly fail in our CI environment. Unfortunately, this is expected due to the network layer. Thus, let's re-try the proxy tests up to five times in case they fail.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/azure-pipelines/test.sh b/azure-pipelines/test.sh
index 39e0b88..d275b94 100755
--- a/azure-pipelines/test.sh
+++ b/azure-pipelines/test.sh
@@ -216,7 +216,9 @@ if [ -z "$SKIP_PROXY_TESTS" ]; then
 	export GITTEST_REMOTE_PROXY_HOST="localhost:8090"
 	export GITTEST_REMOTE_PROXY_USER="foo"
 	export GITTEST_REMOTE_PROXY_PASS="bar"
+	export GITTEST_FLAKY_RETRY=5
 	run_test proxy
+	unset GITTEST_FLAKY_RETRY
 	unset GITTEST_REMOTE_PROXY_HOST
 	unset GITTEST_REMOTE_PROXY_USER
 	unset GITTEST_REMOTE_PROXY_PASS