[test] make run-tests.py work on Windows
This commit is contained in:
parent
93b3e30215
commit
74fdd34f4d
|
@ -48,7 +48,7 @@ for filename in args:
|
||||||
if filename == '-':
|
if filename == '-':
|
||||||
f = sys.stdin
|
f = sys.stdin
|
||||||
else:
|
else:
|
||||||
f = open (filename)
|
f = open (filename, encoding='utf8')
|
||||||
|
|
||||||
for line in f:
|
for line in f:
|
||||||
comment = False
|
comment = False
|
||||||
|
@ -67,6 +67,9 @@ for filename in args:
|
||||||
|
|
||||||
fontfile, options, unicodes, glyphs_expected = line.split (":")
|
fontfile, options, unicodes, glyphs_expected = line.split (":")
|
||||||
if fontfile.startswith ('/') or fontfile.startswith ('"/'):
|
if fontfile.startswith ('/') or fontfile.startswith ('"/'):
|
||||||
|
s.name == 'nt': # Skip on Window
|
||||||
|
continue
|
||||||
|
|
||||||
fontfile, expected_hash = fontfile.split('@')
|
fontfile, expected_hash = fontfile.split('@')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue