From f092f83bcfe5e6ec648c4991ad2f6cf5ea23bb0e Mon Sep 17 00:00:00 2001 From: Raymond E. Pasco <ray@ameretat.dev> Date: Mon, 20 Jan 2020 00:36:01 -0500 Subject: [PATCH] Fix `date --date` dependent test This test depends on a nonportable option for date(1). I am not sure that there is a good portable way to do this, so I just directly included the seconds since epoch that it would have computed. We're testing scdoc, not testing the local system's date command. --- test/preamble | 3 +-- diff --git a/test/preamble b/test/preamble index 8f9de2aa5152425f3aa692e8143ab6e89cf7a5c6..1634877dd85f8be2a6b713997571ca738f77d95c 100755 --- a/test/preamble +++ b/test/preamble @@ -70,8 +70,7 @@ test-manual(8) "" "Header" EOF end 0 -export TZ=UTC -export SOURCE_DATE_EPOCH=$(date --date="2017-12-09 23:18:57" +'%s') +export SOURCE_DATE_EPOCH=1512861537 begin "Supports \$SOURCE_DATE_EPOCH" scdoc <<EOF | grep '^\.TH "reproducible-manual" "8" "2017-12-09"' >/dev/null -- 2.48.1