1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

Improve identification of WSL (#196)

Ignore case when searching for Microsoft inside /proc/version.
This commit is contained in:
Tim Byrne
2020-01-20 07:47:31 -06:00
parent 04b98a96cb
commit 76c82c763e
2 changed files with 12 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ import pytest
@pytest.mark.parametrize(
'proc_value, expected_os', [
('missing', 'uname'),
('has Microsoft inside', 'WSL'),
('has MiCrOsOfT inside', 'WSL'), # case insensitive
('another value', 'uname'),
], ids=[
'/proc/version missing',