git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cf31c2
)
virt-tar test: Stable ordering of test output.
author
Richard W.M. Jones
<rjones@redhat.com>
Mon, 1 Aug 2011 14:13:08 +0000
(15:13 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Mon, 1 Aug 2011 14:13:08 +0000
(15:13 +0100)
The files could be listed in any order, resulting in the test failing
for no reason. Sort the output of tar.
tools/test-virt-tar.sh
patch
|
blob
|
history
diff --git
a/tools/test-virt-tar.sh
b/tools/test-virt-tar.sh
index
2239c13
..
dec4f48
100755
(executable)
--- 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