From c02a1118d727b05444f099f5101c35b29d9bb9a1 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Tue, 24 Nov 2015 15:48:28 +0000 Subject: [PATCH] BaseLinuxDevice: list_file_systems() now handles blank lines mount() may return an empty line at the end of the output; this update handles that. --- wlauto/common/linux/device.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wlauto/common/linux/device.py b/wlauto/common/linux/device.py index 3192d58f..4b020877 100644 --- a/wlauto/common/linux/device.py +++ b/wlauto/common/linux/device.py @@ -301,6 +301,9 @@ class BaseLinuxDevice(Device): # pylint: disable=abstract-method output = self.execute('mount') fstab = [] for line in output.split('\n'): + line = line.strip() + if not line: + continue match = FSTAB_ENTRY_REGEX.search(line) if match: fstab.append(FstabEntry(match.group(1), match.group(2),