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