summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-09 20:18:09 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-21 13:02:08 +0100
commitdcd2dc26b9a9003bdb9d81ae1a38746e6e62af97 (patch)
treeab375c56c1744e4a47ef9b1a740c87e17f37557b /python
parent2424022aecbaa7aed3c1babaa1825b01dcf92bf4 (diff)
downloadlibguestfs-dcd2dc26b9a9003bdb9d81ae1a38746e6e62af97.tar.gz
libguestfs-dcd2dc26b9a9003bdb9d81ae1a38746e6e62af97.tar.xz
libguestfs-dcd2dc26b9a9003bdb9d81ae1a38746e6e62af97.zip
fish: Change test-escapes so test is not endian-sensitive.
The test used the external 'od' command to compare the output of guestfish with what it's supposed to be. Unfortunately by default this outputs groups of 2-byte words, with the words' endianness affected by the current hardware endianness. For example: x86-64$ echo -n ab | od 0000000 061141 0000002 ppc64$ echo -n ab | od 0000000 060542 0000002 By using 'od -b' instead we can output bytes instead of words, and there is no endianness issue, and the output is clearer: x86-64$ echo -n ab | od -b 0000000 141 142 0000002 ppc64$ echo -n ab | od -b 0000000 141 142 0000002 (cherry picked from commit 20137c8731d142797e2476e35fe724c95a8a7a06)
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions