[tracker/wip/carlosg/backports-for-3-1: 9/16] tests: Make TEST_TAP_ENABLED a boolean value




commit c9d8a1cf289e69f9953960c928103bcf8432639b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Apr 3 11:25:34 2021 +0200

    tests: Make TEST_TAP_ENABLED a boolean value
    
    We receive it as a string and deal with it as a boolean, resulting
    in tap.py being always required.

 tests/functional-tests/configuration.json.in | 2 +-
 tests/functional-tests/meson.build           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/functional-tests/configuration.json.in b/tests/functional-tests/configuration.json.in
index 65f2c0bbe..c3f785e6e 100644
--- a/tests/functional-tests/configuration.json.in
+++ b/tests/functional-tests/configuration.json.in
@@ -3,6 +3,6 @@
     "TEST_ONTOLOGIES_DIR": "@TEST_ONTOLOGIES_DIR@",
     "TEST_DBUS_DAEMON_CONFIG_FILE": "@TEST_DBUS_DAEMON_CONFIG_FILE@",
     "TEST_PORTAL_FLATPAK_INFO": "@TEST_PORTAL_FLATPAK_INFO@",
-    "TEST_TAP_ENABLED": "@TEST_TAP_ENABLED@",
+    "TEST_TAP_ENABLED": @TEST_TAP_ENABLED@,
     "TRACKER_VERSION": "@TRACKER_VERSION@"
 }
diff --git a/tests/functional-tests/meson.build b/tests/functional-tests/meson.build
index 70130f65e..c15b3b2f0 100644
--- a/tests/functional-tests/meson.build
+++ b/tests/functional-tests/meson.build
@@ -9,7 +9,7 @@ testconf.set('TEST_ONTOLOGIES_DIR', tracker_uninstalled_nepomuk_ontologies_dir)
 testconf.set('TEST_DBUS_DAEMON_CONFIG_FILE', build_root / 'tests' / 'test-bus.conf')
 testconf.set('TEST_PORTAL_FLATPAK_INFO', source_root / 'tests' / 'flatpak-info')
 testconf.set('TRACKER_VERSION', meson.project_version())
-testconf.set('TEST_TAP_ENABLED', get_option('tests_tap_protocol'))
+testconf.set('TEST_TAP_ENABLED', get_option('tests_tap_protocol').to_string())
 
 config_json = configure_file(
   input: 'configuration.json.in',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]