mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
[util/test-shape] Only output one line per test
If a shape call was failing, perhaps because of --verify failing, hb-shape was producing multiple lines possibly, making the test runner get out of sync and fail all following tests. https://github.com/harfbuzz/harfruzz/issues/60
This commit is contained in:
1 parent
d5dd5ac819
commit
7908e86e35
2 files changed
+4
-7
No files matched your search
@@ -30,7 +30,7 @@ def open_shape_batch_process():
|
||||
cmd,
|
||||
stdin=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=sys.stdout,
|
||||
stderr=subprocess.PIPE,
|
||||
env=env,
|
||||
)
|
||||
return [process]
|
||||
@@ -47,6 +47,7 @@ def shape_cmd(command, shape_process, verbose=False):
|
||||
if shape_process[0].poll() is not None:
|
||||
shape_process[0].stdin.close()
|
||||
shape_process[0].stdout.close()
|
||||
shape_process[0].stderr.close()
|
||||
shape_process[0] = open_shape_batch_process()[0]
|
||||
|
||||
if verbose:
|
||||
@@ -281,8 +282,7 @@ for filename in args:
|
||||
|
||||
if glyphs_expected != "*":
|
||||
extra_options.append("--verify")
|
||||
if shaper == "ot":
|
||||
extra_options.append("--unsafe-to-concat")
|
||||
extra_options.append("--unsafe-to-concat")
|
||||
|
||||
if verbose:
|
||||
print(
|
||||
|
||||
@@ -70,10 +70,7 @@ struct shape_consumer_t : shape_options_t
|
||||
{
|
||||
failed = true;
|
||||
output.error (error);
|
||||
if (hb_buffer_get_content_type (buffer) == HB_BUFFER_CONTENT_TYPE_GLYPHS)
|
||||
break;
|
||||
else
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user