~chipaca/snappy/dont-panic

« back to all changes in this revision

Viewing changes to snappy/click_test.go

  • Committer: John R. Lenton
  • Date: 2015-04-02 22:57:40 UTC
  • mto: (289.9.4 framework-policy)
  • mto: This revision was merged to the branch mainline in revision 316.
  • Revision ID: jlenton@gmail.com-20150402225740-gi7ijj9o2uddhqiv
renamed systemctl to systemd

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        "github.com/mvo5/goconfigparser"
30
30
 
31
31
        "launchpad.net/snappy/helpers"
32
 
        "launchpad.net/snappy/systemctl"
 
32
        "launchpad.net/snappy/systemd"
33
33
 
34
34
        . "launchpad.net/gocheck"
35
35
)
282
282
 
283
283
func (s *SnapTestSuite) TestSnapRemove(c *C) {
284
284
        allSystemctl := []string{}
285
 
        systemctl.SystemctlCmd = func(cmd ...string) ([]byte, error) {
 
285
        systemd.SystemctlCmd = func(cmd ...string) ([]byte, error) {
286
286
                allSystemctl = append(allSystemctl, cmd[0])
287
287
                return nil, nil
288
288
        }
640
640
 
641
641
func (s *SnapTestSuite) TestSnappyHandleServicesOnInstallInhibit(c *C) {
642
642
        allSystemctl := []string{}
643
 
        systemctl.SystemctlCmd = func(cmd ...string) ([]byte, error) {
 
643
        systemd.SystemctlCmd = func(cmd ...string) ([]byte, error) {
644
644
                allSystemctl = append(allSystemctl, cmd...)
645
645
                return []byte("ActiveState=inactive\n"), nil
646
646
        }