From: Nikos Mavrogiannopoulos Date: Wed, 27 Nov 2019 15:13:06 +0000 (+0100) Subject: Revert "tests: ignore datefudge-check check when running on command line" X-Git-Tag: gnutls_3_6_11~9 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=94a4d8af92d4f4ee9c97d3559bf2d4c452c71269;p=thirdparty%2Fgnutls.git Revert "tests: ignore datefudge-check check when running on command line" This commit was breaking CI on FreeBSD systems. This reverts commit 1fe4f8e289d666979618fbb909983ac05aad11ac. Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh index 4c7d12cf62..95f8a5298e 100644 --- a/tests/scripts/common.sh +++ b/tests/scripts/common.sh @@ -74,13 +74,13 @@ GETPORT=' check_for_datefudge() { # On certain platforms running datefudge date fails (e.g., x86 datefudge # with x86-64 date app). - if test "${SKIP_DATEFUDGE_CHECK}" = 1 || test -z "${top_builddir}";then + if test "${SKIP_DATEFUDGE_CHECK}" = 1;then return fi - TSTAMP=`datefudge -s "2006-09-23" "${top_builddir}/tests/datefudge-check"` + TSTAMP=`datefudge -s "2006-09-23" "${top_builddir}/tests/datefudge-check" || true` if test "$TSTAMP" != "1158969600" || test "$WINDOWS" = 1; then - echo "timestamp: ${TSTAMP}" + echo $TSTAMP echo "You need datefudge to run this test" exit 77 fi