tests: fix periodic false failure in month alignment

* tests/ls/abmon-align.sh: Base relative month adjustment
from the middle of the month, to avoid failures due
to months being repeated.
Fixes https://bugs.gnu.org/31644
This commit is contained in:
Pádraig Brady committed 2018-05-29 10:14:07 -07:00
1 parent fb1ca34140
commit c8eb21c9c0
1 file changed
+2 -1
+2 -1
View File
@@ -19,8 +19,9 @@
. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
print_ver_ ls
mid_month="$(date +%Y-%m-15)" || framework_failure_
for mon in $(seq -w 12); do
touch -d"+$mon month" $mon.ts || framework_failure_
touch -d"$mid_month +$mon month" $mon.ts || framework_failure_
done