[meson.build] Don't use str.replace() method

Too recent.
This commit is contained in:
Behdad Esfahbod 2025-04-06 02:20:41 -06:00
parent 628a9ee28a
commit a530672f04
3 changed files with 4 additions and 5 deletions

View file

@ -1,4 +1,4 @@
text_rendering_tests = [
text_rendering_tests_tests = [
'AVAR-1.tests',
'CFF-1.tests',
'CFF-2.tests',
@ -77,7 +77,7 @@ text_rendering_tests = [
'SHKNDA-1.tests',
]
disabled_text_rendering_tests = [
disabled_text_rendering_tests_tests = [
'CMAP-3.tests',
'SHARAN-1.tests',
'SHBALI-1.tests',

View file

@ -118,9 +118,9 @@ subprocess.run([git, "add", "tests"], check=True)
with open("meson.build", "w") as f:
f.write(
"\n".join(
["text_rendering_tests = ["]
["text_rendering_tests_tests = ["]
+ [" '%s'," % x.split("tests/")[1] for x in tests]
+ ["]", "", "disabled_text_rendering_tests = ["]
+ ["]", "", "disabled_text_rendering_tests_tests = ["]
+ [" '%s'," % x.split("tests/")[1] for x in disabled_tests]
+ ["]", ""]
)

View file

@ -16,7 +16,6 @@ sets = ['in-house', 'aots', 'text-rendering-tests']
foreach set : sets
# in-house -> in_house_tests, aots -> aots_tests, text-rendering-tests -> text_rendering_tests
varname = '@0@_tests'.format(set.underscorify())
varname = varname.replace('tests_tests', 'tests')
tests = get_variable(varname)
file_names = []
foreach test : tests