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 12:45:35 +0100
commitc22d0960d3bee27e9032fc898ea64d6c5ffc197d (patch)
tree0ed56803d2cb44408e57a0bb66a5e4a85fe48108 /python
parent485638aafe0fe8c858b63af4aa24ae0825ea253c (diff)
downloadlibguestfs-c22d0960d3bee27e9032fc898ea64d6c5ffc197d.tar.gz
libguestfs-c22d0960d3bee27e9032fc898ea64d6c5ffc197d.tar.xz
libguestfs-c22d0960d3bee27e9032fc898ea64d6c5ffc197d.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