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()
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]
def tearDown(self): super(GRRTempFileTestFilename, self).tearDown() # The actual GRR temp dir. os.rmdir(tempfiles.GetDefaultGRRTempDirectory()) self.tempdir_overrider.Stop()