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_uname for re-use.
  • Use platform.uname instead of os.uname for 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

Merge request reports

Loading