From c46143f61e368509b355e6efd46352d016b8c6ab Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 20 May 2016 17:50:24 +0200 Subject: tests: use /bin/bash in tests which require common.sh --- tests/scripts/common.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/scripts/common.sh') diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh index ec8c7c3c4f..9c9c3fb3aa 100644 --- a/tests/scripts/common.sh +++ b/tests/scripts/common.sh @@ -1,4 +1,5 @@ -# Copyright (C) 2011-2012 Free Software Foundation, Inc. +# Copyright (C) 2011-2016 Free Software Foundation, Inc. +# Copyright (C) 2015-2016 Red Hat, Inc. # # This file is part of GnuTLS. # @@ -18,6 +19,7 @@ # along with this file; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# due to the use of $RANDOM, this script requires bash GETPORT='rc=0;while test $rc = 0;do PORT="$(((($$<<15)|RANDOM) % 63001 + 2000))"; netstat -anl|grep "[\:\.]$PORT" >/dev/null 2>&1; -- cgit v1.2.1