On macOS, Smyrna prints some warnings prior to the usage text:
2022-03-26 19:32:21.216 smyrna[70079:124370] XType: com.apple.fonts is not
accessible.
2022-03-26 19:32:21.216 smyrna[70079:124370] XType: XTFontStaticRegistry is
enabled.
Usage: smyrna [-v?] <file>
Gitlab: related to #1836, #1854
import pytest
sys.path.append(os.path.dirname(__file__))
-from gvtest import is_cmake #pylint: disable=C0413
+from gvtest import is_cmake, remove_xtype_warnings #pylint: disable=C0413
@pytest.mark.parametrize("tool", [
"acyclic",
assert ret == 0, f"`{tool} -?` failed. Output was: {output}"
+ output = remove_xtype_warnings(output)
assert re.match("usage", output, flags=re.IGNORECASE) is not None, \
f"{tool} -? did not show usage. Output was: {output}"