From: Colin Patrick McCabe Date: Mon, 15 Nov 2010 19:27:44 +0000 (-0800) Subject: test_unfound.sh: fix return codes X-Git-Tag: v0.24~177^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=05a16d3217decfc2dfd4f8121e25b5f62aaa25f8;p=ceph.git test_unfound.sh: fix return codes Signed-off-by: Colin McCabe --- diff --git a/src/test/test_unfound.sh b/src/test/test_unfound.sh index 9ca02e22c1d4..3651207da94f 100755 --- a/src/test/test_unfound.sh +++ b/src/test/test_unfound.sh @@ -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" } $@