]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Revert "tests: ignore datefudge-check check when running on command line"
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 27 Nov 2019 15:13:06 +0000 (16:13 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 27 Nov 2019 15:13:32 +0000 (16:13 +0100)
This commit was breaking CI on FreeBSD systems.

This reverts commit 1fe4f8e289d666979618fbb909983ac05aad11ac.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
tests/scripts/common.sh

index 4c7d12cf62da142ee5e616ef866e0e4ffce8d846..95f8a5298e3a10175a6909ca82ef8a5699f4c883 100644 (file)
@@ -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