예제 #1
0
 def test_config_with_new_log(self):
     """A config with a log from this boot is provisioning."""
     rootd = self.tmp_dir()
     data = {self.prov_cfg: ("key=value\nkey2=val2\n", -10),
             self.inst_log: ("log data\n", 30),
             self.boot_ref: ("PWD=/", 0)}
     test_helpers.populate_dir_with_ts(rootd, data)
     self.assertTrue(self._call_with_root(rootd=rootd))
     self.assertIn("from current boot", self.logs.getvalue())
예제 #2
0
 def test_config_with_new_log(self):
     """A config with a log from this boot is provisioning."""
     rootd = self.tmp_dir()
     data = {self.prov_cfg: ("key=value\nkey2=val2\n", -10),
             self.inst_log: ("log data\n", 30),
             self.boot_ref: ("PWD=/", 0)}
     populate_dir_with_ts(rootd, data)
     ret = self.call(rootd=rootd, func=self.funcname)
     self.assertEqual(shell_true, ret.rc)
     self.assertIn("from current boot", ret.stderr)