~ubuntu-cloud-archive/ubuntu/precise/juju-core/precise-ctools

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/upstart/upstart_test.go

  • Committer: Scott Moser
  • Date: 2014-02-26 16:17:47 UTC
  • mfrom: (24.1.5 trusty-proposed)
  • Revision ID: smoser@ubuntu.com-20140226161747-dk6h7wp288370ave
* New upstream point release (LP: #1271941, #834930, #1240667, #1274210):
  - https://launchpad.net/juju-core/trunk/1.17.3
* No change rebuild with gccgo-4.9 as default gccgo. 
* d/control,rules,juju-core.{postinst,prerm}.in: Drop build of gccgo built
  binaries for architectures supported by golang gc.
* d/juju-core.postinst.in: Drop --force option when installing alternatives.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
var _ = gc.Suite(&UpstartSuite{})
30
30
 
31
31
func (s *UpstartSuite) SetUpTest(c *gc.C) {
32
 
        origPath := os.Getenv("PATH")
33
32
        s.testPath = c.MkDir()
34
 
        s.PatchEnvironment("PATH", s.testPath+":"+origPath)
 
33
        s.PatchEnvPathPrepend(s.testPath)
35
34
        s.PatchValue(&upstart.InstallStartRetryAttempts, utils.AttemptStrategy{})
36
35
        s.service = &upstart.Service{Name: "some-service", InitDir: c.MkDir()}
37
36
        _, err := os.Create(filepath.Join(s.service.InitDir, "some-service.conf"))