105
104
func (s *RebootSuite) TestRebootWithMissbehavingContainers(c *gc.C) {
106
105
testing.PatchExecutable(c, s, "lxc-ls", lxcLsScript)
107
106
testing.PatchExecutable(c, s, "lxc-info", lxcInfoScriptMissbehave)
112
109
w, err := reboot.NewRebootWaiter(s.st, s.acfg)
113
110
c.Assert(err, jc.ErrorIsNil)
115
112
err = w.ExecuteReboot(params.ShouldReboot)
118
ft.File{s.rebootScriptName, expectedRebootScript, 0755}.Check(c, s.tmpDir)
121
116
func (s *RebootSuite) TestRebootNoContainers(c *gc.C) {