diff --git a/testing_support/gerrit-init.sh b/testing_support/gerrit-init.sh index 0f3ab32d9..3169ed45b 100755 --- a/testing_support/gerrit-init.sh +++ b/testing_support/gerrit-init.sh @@ -142,7 +142,8 @@ if [ ! -e "$gerrit_exe" ]; then fi # By default, gerrit only accepts https connections, which is a good thing. But -# for testing, it's convenient to enable plain http. +# for testing, it's convenient to enable plain http. Also, turn off all email +# notifications. mkdir -p "${rundir}/etc" cat < "${rundir}/etc/gerrit.config" [auth] @@ -154,6 +155,8 @@ cat < "${rundir}/etc/gerrit.config" listenUrl = http://*:${http_port}/ [sshd] listenAddress = *:${ssh_port} +[sendemail] + enable = false EOF # Initialize the gerrit instance.