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:
parent
9b611d7b67
commit
0bb2461a2c
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user