use uname in a win32-compatible way
Description
Take a step towards being able to run BuildStream on Windows, by using a portable uname impl.
Changes proposed in this merge request:
- Extract
testutils.override_os_unamefor re-use. - Use
platform.unameinstead ofos.unamefor portability. - Use names from uname namedtuple instead of indices for clarity.
- Lowercase the machine name, as Win32 reports in uppercase.
This merge request, when approved, will close:
Edited by Angelos Evripiotis