1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 19:01:15 +01:00

Merge pull request #182 from ep1cman/fixes

sysfs_extractor & cpufreq: Fixed error when tar.gz file already existed
This commit is contained in:
setrofim 2016-06-20 10:13:38 +01:00 committed by GitHub
commit 7904e6b562

View File

@ -157,7 +157,7 @@ class SysfsExtractor(Instrument):
self.tmpfs_mount_point),
as_root=True)
self.device.execute('chmod 0777 {}'.format(on_device_tarball), as_root=True)
self.device.execute('{} gzip {}'.format(self.device.busybox,
self.device.execute('{} gzip -f {}'.format(self.device.busybox,
on_device_tarball))
self.device.pull_file(on_device_tarball + ".gz", on_host_tarball)
with tarfile.open(on_host_tarball, 'r:gz') as tf: