From: Miroslav Lichvar Date: Thu, 29 Apr 2021 12:45:30 +0000 (+0200) Subject: test: fix date use in 010-nts system test X-Git-Tag: 4.1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c1e16711dad83cc4d76b17cf18257b1d0b2d8a3;p=thirdparty%2Fchrony.git test: fix date use in 010-nts system test Avoid using nonportable -d option of date. --- diff --git a/test/system/010-nts b/test/system/010-nts index 66007256..60515110 100755 --- a/test/system/010-nts +++ b/test/system/010-nts @@ -14,8 +14,8 @@ cn = "chrony-nts-test" dns_name = "chrony-nts-test" ip_address = "$server" serial = 001 -activation_date = "$(date -d '1 year ago' +'%Y-%m-%d') 00:00:00 UTC" -expiration_date = "$(date -d '1 year' +'%Y-%m-%d') 00:00:00 UTC" +activation_date = "$[$(date '+%Y') - 1]-01-01 00:00:00 UTC" +expiration_date = "$[$(date '+%Y') + 2]-01-01 00:00:00 UTC" signing_key encryption_key EOF