[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15350: [PATCH 19/19] tests: Restrict gpt-header-munge to little-endi
From: |
Brian C. Lane |
Subject: |
bug#15350: [PATCH 19/19] tests: Restrict gpt-header-munge to little-endian systems |
Date: |
Wed, 11 Sep 2013 12:25:09 -0700 |
From: "Brian C. Lane" <address@hidden>
gpt-header-munge uses perl to manipulate the gpt header for the test. It
only works on 64 bit little-endian systems so restrict it to x86_64
only.
* tests/t0210-gpt-resized-partition-entry-array.sh: Skip if not x86_64
* tests/t0211-gpt-rewrite-header.sh: Skip if not x86_64
---
tests/t0210-gpt-resized-partition-entry-array.sh | 5 +++++
tests/t0211-gpt-rewrite-header.sh | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/tests/t0210-gpt-resized-partition-entry-array.sh
b/tests/t0210-gpt-resized-partition-entry-array.sh
index 8854018..512f342 100755
--- a/tests/t0210-gpt-resized-partition-entry-array.sh
+++ b/tests/t0210-gpt-resized-partition-entry-array.sh
@@ -19,6 +19,11 @@
. "${srcdir=.}/init.sh"; path_prepend_ ../parted $srcdir
require_perl_digest_crc_
+# gpt-header-munge will fail on big-endian systems
+if test $(uname -m) != x86_64; then
+ skip_ 'this test only works on little-endian systems'
+fi
+
ss=$sector_size_
N=2M
diff --git a/tests/t0211-gpt-rewrite-header.sh
b/tests/t0211-gpt-rewrite-header.sh
index 58625a2..a87e753 100644
--- a/tests/t0211-gpt-rewrite-header.sh
+++ b/tests/t0211-gpt-rewrite-header.sh
@@ -23,6 +23,11 @@
. "${srcdir=.}/init.sh"; path_prepend_ ../parted $srcdir
require_perl_digest_crc_
+# gpt-header-munge will fail on big-endian systems
+if test $(uname -m) != x86_64; then
+ skip_ 'this test only works on little-endian systems'
+fi
+
ss=$sector_size_
ns=100 # Initial number of sectors.
--
1.8.3.1
- bug#15356: [PATCH 00/19] Fedora parted patches, Brian C. Lane, 2013/09/11
- bug#15349: [PATCH 10/19] libparted: mklabel to support EDEV DASD, Brian C. Lane, 2013/09/11
- bug#15353: [PATCH 12/19] tests: rewrite t6001 to use /dev/mapper, Brian C. Lane, 2013/09/11
- bug#15351: [PATCH 09/19] libparted: Avoid dasd as default disk type while probe, Brian C. Lane, 2013/09/11
- bug#15352: [PATCH 04/19] libparted: preserve the uuid on dm partitions (#832145), Brian C. Lane, 2013/09/11
- bug#15354: [PATCH 05/19] tests: Make sure dm UUIDs are not erased, Brian C. Lane, 2013/09/11
- bug#15355: [PATCH 02/19] tests: test creating 20 device-mapper partitions (#803108), Brian C. Lane, 2013/09/11