From 248262f5778ab64a0ccb03d3a269feb245f9b844 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 8 Apr 2014 17:08:22 -0700 Subject: [PATCH 92/93] testing: Use little-endian packing in gpt tests Fix gpt-header-move.py and gpt-header-munge to use little endian when packing and unpacking. This allows us to turn the t0210 and t0211 tests back on for big-endian systems. * tests/gpt-header-move.py: Use little endian for pack/unpack * tests/gpt-header-munge: Same * tests/t-lib-helpers.sh: Add requires_64bit_ that checks for x86_64 and ppc64 * tests/t0210-gpt-resized-partition-entry-array.sh: Remove x86_64 test * tests/t0211-gpt-rewrite-header.sh: Same --- tests/gpt-header-move.py | 16 ++++++++-------- tests/gpt-header-munge | 6 +++--- tests/t-lib-helpers.sh | 12 ++++++++++++ tests/t0210-gpt-resized-partition-entry-array.sh | 6 ++---- tests/t0211-gpt-rewrite-header.sh | 6 ++---- 5 files changed, 27 insertions(+), 19 deletions(-) diff --git a/tests/gpt-header-move.py b/tests/gpt-header-move.py index 69d1479..977febb 100644 --- a/tests/gpt-header-move.py +++ b/tests/gpt-header-move.py @@ -8,14 +8,14 @@ import sys file = open(sys.argv[1],'rb+') file.seek(512) gptheader = file.read(512) -altlba = unpack_from('q', gptheader,offset=32)[0] +altlba = unpack_from('