From a8d003887e1a96a8bb0e50708954f69b428bc226 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Nov 26 2013 01:45:17 +0000 Subject: Fix problem where builds starting before and ending after midnight would fail because of a date comparison. Signed-off-by: Al Stone --- diff --git a/run-misc-tests.sh b/run-misc-tests.sh index d182687..02a6a93 100644 --- a/run-misc-tests.sh +++ b/run-misc-tests.sh @@ -26,7 +26,13 @@ case $m in *) BITS=32 ;; esac -WHEN=`date +"%b %_d %Y"` + +# if a build starts before midnight, but ends after midnight, this +# test can get confused. grab the date from the iasl file we just +# built so they match regardless. +FDATE=`stat --format="%Y" $BINDIR/iasl | cut -d" " -f1` +WHEN=`date --date="@$FDATE" +"%b %_d %Y"` + sed -e "s/XXXXXXXXXXX/$WHEN/" \ -e "s/YYYY/$BITS/" \ -e "s/VVVVVVVV/$VERSION/" \