[acpica-tools] Fix problem where builds starting before and ending after midnight would fail because of a date comp

Al Stone ahs3 at fedoraproject.org
Tue Nov 26 02:48:04 UTC 2013


commit a8d003887e1a96a8bb0e50708954f69b428bc226
Author: Al Stone <ahs3 at redhat.com>
Date:   Mon Nov 25 18:45:17 2013 -0700

    Fix problem where builds starting before and ending after midnight would
    fail because of a date comparison.
    
    Signed-off-by: Al Stone <ahs3 at redhat.com>

 run-misc-tests.sh |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
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/" \


More information about the scm-commits mailing list