[ostree] test-local-pull: Sort find output to make test robust



commit e908ebd9b399a22b1c5796315f8345c50d15d167
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Dec 8 20:26:58 2014 +0100

    test-local-pull: Sort find output to make test robust
    
    There is no guarantee that find will produce output in the same
    order, so we need to sort the output to ensure we always
    get the same output.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=741125

 tests/test-local-pull.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/test-local-pull.sh b/tests/test-local-pull.sh
index 9c97aa1..df5342d 100755
--- a/tests/test-local-pull.sh
+++ b/tests/test-local-pull.sh
@@ -44,13 +44,13 @@ echo "ok pull-local bare-user to z2"
 # Verify the name + size + mode + type + symlink target + owner/group are the same
 # for all checkouts
 ${CMD_PREFIX} ostree checkout --repo repo test2 checkout1
-find checkout1 -printf '%P %s %#m %u/%g %y %l\n' > checkout1.files
+find checkout1 -printf '%P %s %#m %u/%g %y %l\n' | sort > checkout1.files
 
 ${CMD_PREFIX} ostree checkout --repo repo2 test2 checkout2
-find checkout2 -printf '%P %s %#m %u/%g %y %l\n' > checkout2.files
+find checkout2 -printf '%P %s %#m %u/%g %y %l\n' | sort > checkout2.files
 
 ${CMD_PREFIX} ostree checkout --repo repo3 test2 checkout3
-find checkout3 -printf '%P %s %#m %u/%g %y %l\n' > checkout3.files
+find checkout3 -printf '%P %s %#m %u/%g %y %l\n' | sort > checkout3.files
 
 cmp checkout1.files checkout2.files
 cmp checkout1.files checkout3.files


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]