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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user