Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions providers/base/bin/removable_storage_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@
from checkbox_support.udev import get_udev_block_devices # noqa: E402
from checkbox_support.udev import get_udev_xhci_devices # noqa: E402

from checkbox_support.snap_utils.system import on_ubuntucore # noqa: E402

Check warning on line 48 in providers/base/bin/removable_storage_test.py

View check run for this annotation

Codecov / codecov/patch

providers/base/bin/removable_storage_test.py#L48

Added line #L48 was not covered by tests


class ActionTimer:
"""Class to implement a simple timer"""
Expand Down Expand Up @@ -111,20 +113,6 @@
return md5.hexdigest()


def on_ubuntucore():
"""
Check if running from on ubuntu core
"""
snap = os.getenv("SNAP")
if snap:
with open(os.path.join(snap, "meta/snap.yaml")) as f:
for line in f.readlines():
if line == "confinement: classic\n":
return False
return True
return False


class DiskTest:
"""Class to contain various methods for testing removable disks"""

Expand Down
Loading