summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-08-01 15:13:08 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-08-01 15:13:08 +0100
commit995b3fecb9af7a8bd52b238bad2a631a1193c83a (patch)
tree55141d3ec92ee7eb056843931b45b1dff5db70f4 /tools
parent3cf31c2fe0b356ea5c04117c5235b0a3cfe34971 (diff)
downloadlibguestfs-995b3fecb9af7a8bd52b238bad2a631a1193c83a.tar.gz
libguestfs-995b3fecb9af7a8bd52b238bad2a631a1193c83a.tar.xz
libguestfs-995b3fecb9af7a8bd52b238bad2a631a1193c83a.zip
virt-tar test: Stable ordering of test output.
The files could be listed in any order, resulting in the test failing for no reason. Sort the output of tar.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test-virt-tar.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test-virt-tar.sh b/tools/test-virt-tar.sh
index 2239c138..dec4f482 100755
--- a/tools/test-virt-tar.sh
+++ b/tools/test-virt-tar.sh
@@ -6,7 +6,7 @@ set -e
# Read out the test directory using virt-tar.
./virt-tar -x ../images/fedora.img /bin test.tar
-if [ "$(tar tf test.tar)" != "./
+if [ "$(tar tf test.tar | sort)" != "./
./ls
./test1
./test2