Override E-mail in Gerrit integration tests

On test platforms where the default hostname is not an FQDN, git
fails to guess a usable E-mail address. We don't actually care what
E-mail address these tests see, so override it with a known working
value.

Change-Id: Id65af4876b9658c34a10d1a8f5c72813830725c4
This commit is contained in:
Jeremy Stanley 2015-06-03 20:06:25 +00:00
parent 9b611d7b67
commit 0bb2461a2c
1 changed files with 1 additions and 0 deletions

View File

@ -179,6 +179,7 @@ class BaseGitReviewTestCase(testtools.TestCase, GerritHelpers):
os.environ['HOME'] = self.home_dir
os.environ['XDG_CONFIG_HOME'] = self.xdg_config_dir
os.environ['GIT_CONFIG_NOSYSTEM'] = "1"
os.environ['EMAIL'] = "you@example.com"
if not os.path.exists(self.home_dir):
os.mkdir(self.home_dir)
if not os.path.exists(self.xdg_config_dir):