]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Fix some function desciptions
authorDavid Zafman <dzafman@redhat.com>
Fri, 8 Jun 2018 18:56:18 +0000 (11:56 -0700)
committerNathan Cutler <ncutler@suse.com>
Tue, 3 Jul 2018 11:28:18 +0000 (13:28 +0200)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit f886ebba083a37c1b2d1fcf1a592008b4b16a8aa)

Conflicts:
qa/standalone/ceph-helpers.sh (trivial resolution)

qa/standalone/ceph-helpers.sh

index fed25b7aacf645f4ea3cc6d952971bd20e88529a..07f40d0b1efaac00ef48ca028f4aaf1564ae7ec6 100755 (executable)
@@ -145,6 +145,7 @@ function test_setup() {
 # subvolumes that relate to it.
 #
 # @param dir path name of the environment
+# @param dumplogs pass "1" to dump logs otherwise it will only if cores found
 # @return 0 on success, 1 on error
 #
 function teardown() {
@@ -1453,10 +1454,11 @@ function test_wait_for_clean() {
 #######################################################################
 
 ##
-# Wait until the cluster becomes HEALTH_OK again or if it does not make progress
-# for $TIMEOUT seconds.
+# Wait until the cluster has health condition passed as arg
+# again for $TIMEOUT seconds.
 #
-# @return 0 if the cluster is HEALTHY, 1 otherwise
+# @param string to grep for in health detail
+# @return 0 if the cluster health matches request, 1 otherwise
 #
 function wait_for_health() {
     local grepstr=$1
@@ -1473,6 +1475,12 @@ function wait_for_health() {
     done
 }
 
+##
+# Wait until the cluster becomes HEALTH_OK again or if it does not make progress
+# for $TIMEOUT seconds.
+#
+# @return 0 if the cluster is HEALTHY, 1 otherwise
+#
 function wait_for_health_ok() {
      wait_for_health "HEALTH_OK" || return 1
 }