From 9f394ead4b4457dcfdbb0872977e739fa88d1952 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 1 Oct 2020 20:53:06 +0200 Subject: [PATCH] fix test suite for non-GNU: remove GNUisms * date --date= does not exist on BSD --- tests/run-tests | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/run-tests b/tests/run-tests index 77d2734d..5a5cc232 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -620,8 +620,7 @@ echo "com.politedroid_4.apk com.politedroid 2016-01-01" > stats/known_apks.txt echo "com.politedroid_5.apk com.politedroid 2017-01-01" >> stats/known_apks.txt echo "com.politedroid_6.apk com.politedroid 2018-01-01" >> stats/known_apks.txt sed -i -e 's/ArchivePolicy:.*/ArchivePolicy: 1 versions/' metadata/com.politedroid.yml -# Get the java ms timestamp from UTC time -timestamp=$(date -u --date=2017-01-01 +%s)000 +timestamp=1483228800 # $(date -u --date=2017-01-01 +%s)000 $fdroid update --pretty --nosign grep -F "\"added\": $timestamp" repo/index-v1.json