From: Jacob Keller Date: Thu, 27 Mar 2014 18:40:05 +0000 (-0700) Subject: email: rename error_test_patchset_failed X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=939891776a3e865865e51235c807d2c759e62640;p=users%2Fdedekind%2Faiaiai.git email: rename error_test_patchset_failed Since this function could be used to generically refer to any internal error, modify the name and description. We will be using this function in a later patch to indicate an internal error in a hook as well. Signed-off-by: Jacob Keller Signed-off-by: Artem Bityutskiy --- diff --git a/email/aiaiai-email-test-patchset b/email/aiaiai-email-test-patchset index 0692894..21b4558 100755 --- a/email/aiaiai-email-test-patchset +++ b/email/aiaiai-email-test-patchset @@ -138,10 +138,10 @@ EOF exit 0 } -# This function is called when the 'aiaiai-test-patchest' fails. This most -# probably means a bug or configuration issues. This function sends -# corresponding e-mail notification. -error_test_patchset_failed() +# This function is called when an internal error occurs, such as when +# aiaiai-test-patchset fails. This most probably means a bug or configuration +# issue occurred. This function sends a corresponding email notification. +error_internal_error_occurred() { send_email < "$tmpdir/test-patchset.log" || { verbose "aiaiai-test-patchset failed" - error_test_patchset_failed + error_internal_error_occurred } # Mail the results of testing