On 09/09/2020 02:29, Chris Johns wrote: [...] > >> > Also I am not sure but hopefully the test reports do accurately reflect >> host OS. >> >> There is a "Host" section at the top of the results log? It is just >> `uname -a`. >> >> I think that's sufficient as long as it can distinguish Linux distributions. > > Does Linux or Python on Linux provide a common means to find what distribution > you are on? Do distributions based on another distro make a suitable the > separation? A Linux distro expert will need to guide this. I have no idea. >
In theory there is the platform.linux_distribution() in python: https://docs.python.org/3.7/library/platform.html#module-platform But on my OpenSUSE 15.1 that failed to provide anything. Beneath that it seems to be deprecated since Python 3.5. A newer package that want to provide this functionality is "distro": https://distro.readthedocs.io/en/latest/ Beneath that module, there is "/etc/os-release". It's a standard file for systemd. So most likely most distros have it now: https://www.freedesktop.org/software/systemd/man/os-release.html Best regards Christian -- -------------------------------------------- embedded brains GmbH Herr Christian Mauderer Dornierstr. 4 D-82178 Puchheim Germany email: christian.maude...@embedded-brains.de Phone: +49-89-18 94 741 - 18 Fax: +49-89-18 94 741 - 08 PGP: Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel