]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test_unfound.sh: fix return codes
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 15 Nov 2010 19:27:44 +0000 (11:27 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 15 Nov 2010 20:15:15 +0000 (12:15 -0800)
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
src/test/test_unfound.sh

index 9ca02e22c1d4ce4dfedceefcd0313cec0301b933..3651207da94f146389036df9f26b793f0325e312 100755 (executable)
@@ -64,7 +64,7 @@ osd_resurrection_1_impl() {
         # TODO: turn off recovery delay start and verify that every osd gets copies of the correct objects.
 
         # success
-        return 1
+        return 0
 }
 
 osd_resurrection_1() {
@@ -112,7 +112,7 @@ stray_test_impl() {
         [ $? -eq 1 ] || die "Failed to discover unfound objects."
 
         # success
-        return 1
+        return 0
 }
 
 stray_test() {
@@ -121,13 +121,9 @@ stray_test() {
 }
 
 run() {
-        osd_resurrection_1
-        [ $? -eq 1 ] || return 0
-        ./stop.sh
+        osd_resurrection_1 || die "test failed"
 
-        stray_test
-        [ $? -eq 1 ] || return 0
-        ./stop.sh
+        stray_test || die "test failed"
 }
 
 $@