diff options
author | Paul Larson <paul.larson@canonical.com> | 2021-06-17 08:35:02 -0500 |
---|---|---|
committer | Paul Larson <paul.larson@canonical.com> | 2021-06-17 08:35:02 -0500 |
commit | 7a6763e87cc573b3693025d711fb559168bf97a4 (patch) | |
tree | ff973a729979ac94ca35a97bf744966d89460479 /bin | |
parent | 8621fc737e0435c93d12f8c85b093355ee3d5cf2 (diff) |
Filter snapd/save device from storage tests
Don't consider devices used for snapd save partition when running the storage_device_* tests since we can't write to it.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/disk_info.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/disk_info.py b/bin/disk_info.py index 0b45443..5b4efbd 100755 --- a/bin/disk_info.py +++ b/bin/disk_info.py @@ -62,6 +62,9 @@ def main(): find_pkname_is_root_mountpoint(m.group('KNAME'), lsblk) ): continue + # Don't consider any block dev mounted as snapd save partition + if 'snapd/save' in m.group('MOUNTPOINT'): + continue disks += 1 model = m.group('MODEL') if not model: |