mavsdk_tests: don't forget to check for rootfs dir

This commit is contained in:
Julian Oes 2021-02-11 11:18:14 +01:00 committed by Lorenz Meier
parent 4184c204c4
commit aca1e85da4
1 changed files with 9 additions and 8 deletions

View File

@ -177,6 +177,7 @@ class Px4Runner(Runner):
rootfs_path = self.cwd
if self.verbose:
print("Clearing rootfs (except logs): {}".format(rootfs_path))
if os.path.isdir(rootfs_path):
for item in os.listdir(rootfs_path):
if item == 'log':
continue