nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0361-Fix-pseries-test.patch

f96e0b
From 942ce2482508609d311410d6bc79316435512d16 Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Sat, 27 Apr 2013 14:11:12 +0200
f96e0b
Subject: [PATCH 361/482] 	Fix pseries test.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                     | 4 ++++
f96e0b
 grub-core/lib/ieee1275/halt.c | 2 +-
f96e0b
 tests/pseries_test.in         | 6 +++---
f96e0b
 tests/util/grub-shell.in      | 2 +-
f96e0b
 4 files changed, 9 insertions(+), 5 deletions(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index f4306c4..8c34cc0 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,5 +1,9 @@
f96e0b
 2013-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
+	Fix pseries test.
f96e0b
+
f96e0b
+2013-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
 	Make 'make check' work on emu.
f96e0b
 
f96e0b
 2013-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
diff --git a/grub-core/lib/ieee1275/halt.c b/grub-core/lib/ieee1275/halt.c
f96e0b
index 7ede29d..8fc16d2 100644
f96e0b
--- a/grub-core/lib/ieee1275/halt.c
f96e0b
+++ b/grub-core/lib/ieee1275/halt.c
f96e0b
@@ -25,8 +25,8 @@ grub_halt (void)
f96e0b
 {
f96e0b
   /* Not standardized.  We try three known commands.  */
f96e0b
 
f96e0b
-  grub_ieee1275_interpret ("shut-down", 0);
f96e0b
   grub_ieee1275_interpret ("power-off", 0);
f96e0b
+  grub_ieee1275_interpret ("shut-down", 0);
f96e0b
   grub_ieee1275_interpret ("poweroff", 0);
f96e0b
 
f96e0b
   while (1);
f96e0b
diff --git a/tests/pseries_test.in b/tests/pseries_test.in
f96e0b
index 86a396a..2264945 100644
f96e0b
--- a/tests/pseries_test.in
f96e0b
+++ b/tests/pseries_test.in
f96e0b
@@ -23,15 +23,15 @@ if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" != powerpc-ieee1275 ]
f96e0b
    exit 0
f96e0b
 fi
f96e0b
 
f96e0b
-if [ "$(echo hello | "${grubshell}" --pseries --timeout 180 --boot=cd)" != "Hello World" ]; then
f96e0b
+if [ "$(echo hello | "${grubshell}" --pseries --timeout=180 --boot=cd)" != "Hello World" ]; then
f96e0b
    exit 1
f96e0b
 fi
f96e0b
 
f96e0b
-if [ "$(echo hello | "${grubshell}" --pseries --timeout 180 --boot=hd)" != "Hello World" ]; then
f96e0b
+if [ "$(echo hello | "${grubshell}" --pseries --timeout=180 --boot=hd)" != "Hello World" ]; then
f96e0b
    exit 1
f96e0b
 fi
f96e0b
 
f96e0b
 # FIXME: workaround SLOF bugs
f96e0b
-#if [ "$(echo hello | "${grubshell}" --pseries --timeout 180 --boot=net)" != "Hello World" ]; then
f96e0b
+#if [ "$(echo hello | "${grubshell}" --pseries --timeout=180 --boot=net)" != "Hello World" ]; then
f96e0b
 #   exit 1
f96e0b
 #fi
f96e0b
diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in
f96e0b
index 7c88018..e00998a 100644
f96e0b
--- a/tests/util/grub-shell.in
f96e0b
+++ b/tests/util/grub-shell.in
f96e0b
@@ -205,7 +205,7 @@ for option in "$@"; do
f96e0b
 	qemu=qemu-system-ppc64
f96e0b
 	serial_port=ieee1275/hvterm
f96e0b
 	serial_null=
f96e0b
-	qemuopts="$qemuopts -no-reboot"
f96e0b
+	qemuopts="$qemuopts -M pseries -no-reboot"
f96e0b
 	trim=1
f96e0b
 	    ;;
f96e0b
     --qemu-opts=*)
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b