Skip to content

Commit 1dacd42

Browse files
committed
Add to test slashes on paths (wip)
1 parent 684bf79 commit 1dacd42

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_tools.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,12 @@ def generate(tool, part):
8787
prj.add_hook('postbit', 'HOOK16')
8888
prj.make()
8989
prj.prog()
90+
#
91+
for path in prj.data['includes']:
92+
assert "\\" not in path, f'invalid path {path}'
93+
for category in ['files', 'constraints']:
94+
for path in prj.data[category]:
95+
assert "\\" not in path, f'invalid path {path}'
96+
#
97+
path = prj._get_bitstream()
98+
assert "\\" not in path, f'invalid path {path}'

0 commit comments

Comments
 (0)