]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* tests/grub_cmd_date.in: Skip on sparc64.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 14 Apr 2013 23:54:23 +0000 (01:54 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 14 Apr 2013 23:54:23 +0000 (01:54 +0200)
ChangeLog
tests/grub_cmd_date.in

index 139120288468f0333ae49ec4ec6898c109dfdeb0..db6076cfd91b592a56171ea3938bb5aee71f83a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * tests/grub_cmd_date.in: Skip on sparc64.
+
 2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * tests/grub_script_expansion.in: Use fixed-string grep to skip over
index 254fb91ea57c5a8086e5afdd5405b246dabfe1e3..76436a016c87f2f543bc21bb6e079cf9bd64bf51 100644 (file)
@@ -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)"