chore: ensure test names differ by more than just case (#12729)
These tests may lead to issues on case insensitive file systems.
This commit is contained in:
parent
2e9e5db408
commit
36ffba4b57
2 changed files with 11 additions and 0 deletions
|
|
@ -190,5 +190,16 @@ for file in Path().glob("**/run_bench"):
|
|||
nag("has env_test.sh", file)
|
||||
|
||||
|
||||
# File confusion by case insensitive filesystems,
|
||||
# applies to entire repository
|
||||
|
||||
seen: set[str] = set()
|
||||
for file in Path("..").glob("**/*"):
|
||||
path = str(file).lower()
|
||||
if path in seen:
|
||||
nag("case sensitive", file)
|
||||
seen.add(path)
|
||||
|
||||
|
||||
if ERROR:
|
||||
sys.exit(1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue