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/" \