Skip to content
Snippets Groups Projects
Commit 7bdeea4b authored by Siba Prasad's avatar Siba Prasad
Browse files

lrdp-v2: Add remove_file support to ramdump class

This adds remove_file function to ramdump class.

Change-Id: Ibe6196aad7ccd1c2bb381b9adab682394244f879
parent 6a742494
Branches
No related tags found
No related merge requests found
...@@ -695,6 +695,16 @@ class RamDump(): ...@@ -695,6 +695,16 @@ class RamDump():
sys.exit(1) sys.exit(1)
return f return f
def remove_file(self, file_name):
file_path = os.path.join(self.outdir, file_name)
try:
if (os.path.exists(file_path)):
os.remove(file_path)
except:
print_out_str('Could not remove file {0}'.format(file_path))
print_out_str('Do you have write/read permissions on the path?')
sys.exit(1)
def get_config(self): def get_config(self):
kconfig_addr = self.address_of('kernel_config_data') kconfig_addr = self.address_of('kernel_config_data')
if kconfig_addr is None: if kconfig_addr is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment