Skip to content

Improve the way to detect the Distro #616

Description

@jabrena

Currently, the way to detect the distro, is weak:

2018-12-09 19:00:07 [main] INFO  ev3dev.hardware.EV3DevDistros - Providing an EV3DevDistros instance
2018-12-09 19:00:07 [main] DEBUG ev3dev.utils.Shell - Command: cat /etc/os-release
2018-12-09 19:00:07 [main] WARN  ev3dev.hardware.EV3DevDistros - Failed to detect distro, falling back to Stretch.
2018-12-09 19:00:07 [main] DEBUG ev3dev.hardware.EV3DevDistros - Debian Stretch detected

In a local computer, we should return an exception except the class is mocked.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions