]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
email: rename error_test_patchset_failed
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 27 Mar 2014 18:40:05 +0000 (11:40 -0700)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 31 Mar 2014 08:21:42 +0000 (11:21 +0300)
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 <jacob.e.keller@intel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
email/aiaiai-email-test-patchset

index 069289418198c7536b076f32b75f3307938cb978..21b45583fde09b00c34f2a8780e7374e9e169127 100755 (executable)
@@ -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 <<EOF
 Sorry, but an internal $cfg_ownname error happened. Please, contact
@@ -318,7 +318,7 @@ aiaiai-test-patchset $verbose ${cfg_preserve_files:+--preserve} \
        "$pcfg_path" "$pcfg_configs" > "$tmpdir/test-patchset.log" ||
 {
        verbose "aiaiai-test-patchset failed"
-       error_test_patchset_failed
+       error_internal_error_occurred
 }
 
 # Mail the results of testing