From: Vladimir 'phcoder' Serbinenko Date: Sun, 14 Apr 2013 23:54:23 +0000 (+0200) Subject: * tests/grub_cmd_date.in: Skip on sparc64. X-Git-Tag: grub-2.02-beta1~1147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88017d47a9741b9e9ce50b1c222ad2ee5ecd016f;p=thirdparty%2Fgrub.git * tests/grub_cmd_date.in: Skip on sparc64. --- diff --git a/ChangeLog b/ChangeLog index 139120288..db6076cfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-04-15 Vladimir Serbinenko + + * tests/grub_cmd_date.in: Skip on sparc64. + 2013-04-15 Vladimir Serbinenko * tests/grub_script_expansion.in: Use fixed-string grep to skip over diff --git a/tests/grub_cmd_date.in b/tests/grub_cmd_date.in index 254fb91ea..76436a016 100644 --- a/tests/grub_cmd_date.in +++ b/tests/grub_cmd_date.in @@ -1,6 +1,13 @@ #! /bin/bash set -e +. "@builddir@/grub-core/modinfo.sh" + +# OpenBIOS on sparc64 doesn't implement RTC +if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = sparc64-ieee1275 ]; then + exit 0 +fi + pdt="$(date -u +%s)" dt=`echo date | @builddir@/grub-shell` dtg="$(date -u -d "$dt" +%s)"