| Index: testing_support/gerrit-init.sh
|
| diff --git a/testing_support/gerrit-init.sh b/testing_support/gerrit-init.sh
|
| index 0f3ab32d9366dd7737e8baa8feb2d577297cf825..3169ed45bd8d5bd33e556e27a1f6e052cc7cf4c4 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 <<EOF > "${rundir}/etc/gerrit.config"
|
| [auth]
|
| @@ -154,6 +155,8 @@ cat <<EOF > "${rundir}/etc/gerrit.config"
|
| listenUrl = http://*:${http_port}/
|
| [sshd]
|
| listenAddress = *:${ssh_port}
|
| +[sendemail]
|
| + enable = false
|
| EOF
|
|
|
| # Initialize the gerrit instance.
|
|
|