github.com/mattyw/juju@v0.0.0-20140610034352-732aecd63861/testing/git.go (about) 1 // Copyright 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package testing 5 6 import ( 7 gc "launchpad.net/gocheck" 8 ) 9 10 type GitSuite struct { 11 BaseSuite 12 } 13 14 func (t *GitSuite) SetUpTest(c *gc.C) { 15 t.BaseSuite.SetUpTest(c) 16 17 t.PatchEnvironment("HOME", c.MkDir()) 18 t.PatchEnvironment("LC_ALL", "C") 19 20 t.PatchEnvironment("GIT_AUTHOR_NAME", "Foo Bar") 21 t.PatchEnvironment("GIT_AUTHOR_EMAIL", "foo@example.org") 22 t.PatchEnvironment("GIT_COMMITTER_NAME", "Foo Bar") 23 t.PatchEnvironment("GIT_COMMITTER_EMAIL", "foo@example.org") 24 }