minor, enable printing to stderr in run-tests.py
As was originally intended https://github.com/harfbuzz/harfbuzz/blob/3ce6c7b/test/shaping/run-tests.sh
diff --git a/test/shaping/run-tests.py b/test/shaping/run-tests.py
index 292bd7f..9731067 100755
--- a/test/shaping/run-tests.py
+++ b/test/shaping/run-tests.py
@@ -123,8 +123,8 @@
unicodes] + (options.split (' ') if options else []))
if glyphs1[0] != glyphs2[0] and glyphs_expected != '*':
- print ("FT funcs: " + glyphs1[0]) # file=sys.stderr
- print ("OT funcs: " + glyphs2[0]) # file=sys.stderr
+ print ("FT funcs: " + glyphs1[0], file=sys.stderr)
+ print ("OT funcs: " + glyphs2[0], file=sys.stderr)
fails += 1
else:
passes += 1
@@ -134,14 +134,14 @@
continue
if glyphs1[0].strip() != glyphs_expected and glyphs_expected != '*':
- print ("Actual: " + glyphs1[0]) # file=sys.stderr
- print ("Expected: " + glyphs_expected) # file=sys.stderr
+ print ("Actual: " + glyphs1[0], file=sys.stderr)
+ print ("Expected: " + glyphs_expected, file=sys.stderr)
fails += 1
else:
passes += 1
if not reference:
- print ("%d tests passed; %d failed; %d skipped." % (passes, fails, skips)) # file=sys.stderr
+ print ("%d tests passed; %d failed; %d skipped." % (passes, fails, skips), file=sys.stderr)
if not (fails + passes):
print ("No tests ran.")
elif not (fails + skips):