summaryrefslogtreecommitdiff
path: root/tests/scripts/common.sh
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2020-09-03 14:16:08 +0000
committerDaiki Ueno <ueno@gnu.org>2020-09-03 14:16:08 +0000
commit999525211e1a5a22194411a4b078259137f5fe19 (patch)
tree3927532d2baa80554b30d4d446d5250868f988a2 /tests/scripts/common.sh
parent3c137c9f2888334596fb9f4313d4389d39afe8fd (diff)
parentb0be5d7c39d4a5f7d29db4630926a4cef7c3edce (diff)
downloadgnutls-999525211e1a5a22194411a4b078259137f5fe19.tar.gz
Merge branch 'tmp-backport-3.6' into 'gnutls_3_6_x'
Backport bug fixes from master to gnutls_3_6_x See merge request gnutls/gnutls!1317
Diffstat (limited to 'tests/scripts/common.sh')
-rw-r--r--tests/scripts/common.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh
index 95f8a5298e..6ae19fa586 100644
--- a/tests/scripts/common.sh
+++ b/tests/scripts/common.sh
@@ -80,7 +80,12 @@ check_for_datefudge() {
TSTAMP=`datefudge -s "2006-09-23" "${top_builddir}/tests/datefudge-check" || true`
if test "$TSTAMP" != "1158969600" || test "$WINDOWS" = 1; then
- echo $TSTAMP
+ return 1
+ fi
+}
+
+skip_if_no_datefudge() {
+ if ! check_for_datefudge; then
echo "You need datefudge to run this test"
exit 77
fi