|
22 | 22 | from mock import patch
|
23 | 23 | from hypothesis import given
|
24 | 24 | from hypothesis.strategies import sampled_from
|
25 |
| -from os.path import join, isfile, dirname, abspath |
| 25 | +from os.path import join, isfile, dirname, abspath, normpath |
26 | 26 | from tools.build_api import get_config
|
27 | 27 | from tools.targets import set_targets_json_location, Target, TARGET_NAMES
|
28 | 28 | from tools.config import ConfigException, Config, ConfigParameter, ConfigMacro
|
@@ -94,15 +94,16 @@ def test_config(name):
|
94 | 94 | assert sorted(expected_features) == sorted(features)
|
95 | 95 |
|
96 | 96 | included_source = [
|
97 |
| - join(test_dir, src) for src in |
| 97 | + normpath(join(test_dir, src)) for src in |
98 | 98 | expected.get("included_source", [])
|
99 | 99 | ]
|
100 | 100 | excluded_source = [
|
101 |
| - join(test_dir, src) for src in |
| 101 | + normpath(join(test_dir, src)) for src in |
102 | 102 | expected.get("excluded_source", [])
|
103 | 103 | ]
|
104 | 104 | for typ in Resources.ALL_FILE_TYPES:
|
105 | 105 | for _, path in resources.get_file_refs(typ):
|
| 106 | + path = normpath(path) |
106 | 107 | if included_source and path in included_source:
|
107 | 108 | included_source.remove(path)
|
108 | 109 | if excluded_source:
|
|
0 commit comments