From 4db1b4f1a266b4b26ad0c445691abcc634a23ab8 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sat, 4 Jul 2020 15:02:19 +0430 Subject: [PATCH] [tests] rename no_ft_funcs to NO_FT_FUNCS --- test/shaping/meson.build | 4 +--- test/shaping/run-tests.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/shaping/meson.build b/test/shaping/meson.build index 396a0ca0e..0e2ee5b2a 100644 --- a/test/shaping/meson.build +++ b/test/shaping/meson.build @@ -6,9 +6,7 @@ subdir('data/text-rendering-tests') # text_rendering_tests shaping_run_tests_py = find_program('run-tests.py') env = environment() -if conf.get('HAVE_FREETYPE', 0) == 0 - env.set('no_ft_funcs', '1') -endif +env.set('NO_FT_FUNCS', conf.get('HAVE_FREETYPE', 0) == 1 ? '0' : '1') foreach file_name : in_house_tests test_name = file_name.split('.')[0].underscorify() diff --git a/test/shaping/run-tests.py b/test/shaping/run-tests.py index 28bb80935..3cd74cc28 100755 --- a/test/shaping/run-tests.py +++ b/test/shaping/run-tests.py @@ -15,7 +15,7 @@ if len (args) and args[0] == "--reference": reference = True args = args[1:] -no_ft_funcs = bool(int(os.getenv('no_ft_funcs', '0'))) +no_ft_funcs = bool(int(os.getenv ('NO_FT_FUNCS', '0'))) if not args or args[0].find('hb-shape') == -1 or not os.path.exists (args[0]): sys.exit ("""First argument does not seem to point to usable hb-shape.""")