1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-21 15:17:01 +00:00

test/t-14-tls_tracking: Remove Go version check

The test/t-14-tls_tracking test relies on Go 1.8 features, but since we
used to support Go 1.7, the test had a version check.

Since now the minimum Go version supported is 1.9, we can remove this
check.
This commit is contained in:
Alberto Bertogli
2019-07-13 14:56:26 +01:00
parent d6bbea391f
commit d6c1b4a359

View File

@@ -7,16 +7,6 @@ set -e
init init
# To fake SPF we need to override the resolver, which is only supported in Go
# >= 1.8, so this test depends on that version.
# TODO: remove this once we only support go >= 1.8.
MAJOR=$(go version | sed 's/.*go\([0-9]\)\..*/\1/')
MINOR=$(go version | sed 's/.*go[0-9]\.\([0-9]\+\).*/\1/')
DEVEL=$(go version | sed 's/.* devel .*/devel/g')
if [ "$DEVEL" != "devel" ] && [ "$MAJOR" -eq 1 ] && [ "$MINOR" -le 7 ]; then
skip "go version ($MAJOR.$MINOR) too old to run this test"
fi
# Build with the DNS override, so we can fake DNS records. # Build with the DNS override, so we can fake DNS records.
export GOTAGS="dnsoverride" export GOTAGS="dnsoverride"