mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 08:51:07 +01:00
[test/shape] Don’t skip test if hb-shape --list-* fails
This can happen with Wine when, e.g., `WINEPATH` is not set, and we would silently skip the tests because lists of supported shapers etc. are empty.
This commit is contained in:
1 parent
6cf308c857
commit
190ad35f71
1 file changed
+2
@@ -97,6 +97,8 @@ for what in ["shaper", "face-loader", "font-funcs"]:
|
||||
)
|
||||
# Capture the output
|
||||
what_list = what_process.communicate()[0].decode("utf-8").strip().split()
|
||||
if what_process.returncode:
|
||||
sys.exit(f"Failed to run: {hb_shape} {subcommand}")
|
||||
whats = plural(what)
|
||||
var_name = supported_whats_var_name(what)
|
||||
globals()[var_name] = what_list
|
||||
|
||||
Reference in new issue
Block a user