grub2/0316-tests-grub_cmd_date.in-Skip-on-sparc64.patch
Peter Jones f74b50e380 Rebase to upstream, fix a pile of bugs. The usual.
Signed-off-by: Peter Jones <pjones@redhat.com>
2013-06-12 15:37:08 -04:00

46 lines
1.2 KiB
Diff

From 076c472649f81a5a57ee52dc2ac775fef6c97a39 Mon Sep 17 00:00:00 2001
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Date: Mon, 15 Apr 2013 01:54:23 +0200
Subject: [PATCH 316/482] * tests/grub_cmd_date.in: Skip on sparc64.
---
ChangeLog | 4 ++++
tests/grub_cmd_date.in | 7 +++++++
2 files changed, 11 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 1391202..db6076c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
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
firmware error messages.
diff --git a/tests/grub_cmd_date.in b/tests/grub_cmd_date.in
index 254fb91..76436a0 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)"
--
1.8.2.1