a5bd9f6
From b9e3a21d4c4ce7d70fe6a22283fc9a1dc1d31ce5 Mon Sep 17 00:00:00 2001
a5bd9f6
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
a5bd9f6
Date: Mon, 15 Apr 2013 01:54:23 +0200
a5bd9f6
Subject: [PATCH 315/364] 	* tests/grub_cmd_date.in: Skip on sparc64.
a5bd9f6
a5bd9f6
---
a5bd9f6
 ChangeLog              | 4 ++++
a5bd9f6
 tests/grub_cmd_date.in | 7 +++++++
a5bd9f6
 2 files changed, 11 insertions(+)
a5bd9f6
a5bd9f6
diff --git a/ChangeLog b/ChangeLog
a5bd9f6
index 1391202..db6076c 100644
a5bd9f6
--- a/ChangeLog
a5bd9f6
+++ b/ChangeLog
a5bd9f6
@@ -1,5 +1,9 @@
a5bd9f6
 2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
a5bd9f6
 
a5bd9f6
+	* tests/grub_cmd_date.in: Skip on sparc64.
a5bd9f6
+
a5bd9f6
+2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
a5bd9f6
+
a5bd9f6
 	* tests/grub_script_expansion.in: Use fixed-string grep to skip over
a5bd9f6
 	firmware error messages.
a5bd9f6
 
a5bd9f6
diff --git a/tests/grub_cmd_date.in b/tests/grub_cmd_date.in
a5bd9f6
index 254fb91..76436a0 100644
a5bd9f6
--- a/tests/grub_cmd_date.in
a5bd9f6
+++ b/tests/grub_cmd_date.in
a5bd9f6
@@ -1,6 +1,13 @@
a5bd9f6
 #! /bin/bash
a5bd9f6
 set -e
a5bd9f6
 
a5bd9f6
+. "@builddir@/grub-core/modinfo.sh"
a5bd9f6
+
a5bd9f6
+# OpenBIOS on sparc64 doesn't implement RTC
a5bd9f6
+if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = sparc64-ieee1275 ]; then
a5bd9f6
+    exit 0
a5bd9f6
+fi
a5bd9f6
+
a5bd9f6
 pdt="$(date -u +%s)"
a5bd9f6
 dt=`echo date | @builddir@/grub-shell`
a5bd9f6
 dtg="$(date -u -d "$dt" +%s)"
a5bd9f6
-- 
a5bd9f6
1.8.1.4
a5bd9f6