X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Frun-tests;h=9ab5a9b6f714b3cf9a545a0c1d94c08f11df8f12;hb=74c6555c719e685d225baa00670ee12779bdeff1;hp=aadd82f197064d23d4c946fe02a3970bae5debf6;hpb=8fbe0738ec74a4cfbd61e7cbb5a32a927509ded6;p=fdroidserver.git diff --git a/tests/run-tests b/tests/run-tests index aadd82f1..9ab5a9b6 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -258,6 +258,10 @@ if [ "$TRAVIS_OS_NAME" != "osx" ]; then ! test -e repo/index.xml.asc fi +v0timestamp=`$sed -n -e 's,.*timestamp="\([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]\)".*,\1,p' repo/index.xml` +v1timestamp=`$sed -n -e 's,.*"timestamp": \([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]\).*,\1,p' repo/index-v1.json` +test $v0timestamp -eq $v1timestamp + # we can't easily reproduce the timestamps for things, so just hardcode them $sed -i.tmp -e 's,timestamp="[0-9]*",timestamp="1480431575",' repo/index.xml diff -uw $WORKSPACE/tests/repo/index.xml repo/index.xml