[sheepdog] [PATCH] test: sort the output in test 027

levin li levin108 at gmail.com
Wed Aug 22 10:01:17 CEST 2012


From: levin li <xingke.lwp at taobao.com>

The order of the output of 'find' may be random, so we
should sort the output first before we compare the output
with 027.out

Signed-off-by: levin li <xingke.lwp at taobao.com>
---
 tests/027     |    2 +-
 tests/027.out |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/027 b/tests/027
index 456c0f7..5af8dab 100755
--- a/tests/027
+++ b/tests/027
@@ -30,4 +30,4 @@ _kill_sheep 3
 
 _wait_for_sheep_recovery 0
 
-find $STORE -name '80fd32fc00000000'
+find $STORE -name '80fd32fc00000000' | sort
diff --git a/tests/027.out b/tests/027.out
index f9887b5..594db32 100644
--- a/tests/027.out
+++ b/tests/027.out
@@ -1,5 +1,5 @@
 QA output created by 027
 using backend farm store
 /tmp/sheepdog/0/obj/80fd32fc00000000
-/tmp/sheepdog/3/obj/80fd32fc00000000
 /tmp/sheepdog/1/obj/80fd32fc00000000
+/tmp/sheepdog/3/obj/80fd32fc00000000
-- 
1.7.1




More information about the sheepdog mailing list