Esempio n. 1
0
 def tearDown(self):
   super(GRRTempFileTestFilename, self).tearDown()
   # The actual GRR temp dir.
   os.rmdir(tempfiles.GetDefaultGRRTempDirectory())
   # The containing dir (would be /tmp for a real client).
   os.rmdir(self.client_tempdir)
   self.tempdir_overrider.Stop()
Esempio n. 2
0
 def CheckFreeGRRTempSpace(self, _):
     """Mock out the driver loading code to pass the memory image."""
     path = tempfiles.GetDefaultGRRTempDirectory()
     reply = rdf_client.DiskUsage(path=path,
                                  total=10 * 1024 * 1024 * 1024,
                                  used=5 * 1024 * 1024 * 1024,
                                  free=5 * 1024 * 1024 * 1024)
     return [reply]
Esempio n. 3
0
 def tearDown(self):
   super(GRRTempFileTestFilename, self).tearDown()
   # The actual GRR temp dir.
   os.rmdir(tempfiles.GetDefaultGRRTempDirectory())
   self.tempdir_overrider.Stop()