summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-06-14 13:41:24 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-06-14 13:52:18 +0200
commit8a023663393e19cd78f2c059f8b7400749b61b4c (patch)
tree067b576a2044deace67370e21ee7f64f90c2227a /tests/scripts
parent91648b502c41875adab539932e4be8a1dcb24fd5 (diff)
downloadgnutls-8a023663393e19cd78f2c059f8b7400749b61b4c.tar.gz
tests: common.sh will export the required TZ for datefudge tests
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/common.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh
index 46f9598032..8e82660155 100644
--- a/tests/scripts/common.sh
+++ b/tests/scripts/common.sh
@@ -21,6 +21,8 @@
# due to the use of $RANDOM, this script requires bash
+export TZ="UTC"
+
GETPORT='rc=0;while test $rc = 0;do PORT="$(((($$<<15)|RANDOM) % 63001 + 2000))";
netstat -anl|grep "[\:\.]$PORT" >/dev/null 2>&1;
rc=$?;done;'