Commit 045cbfad authored by Carlos Garnacho's avatar Carlos Garnacho

functional-tests: Forbid GStreamer to fork for the registry

Running functional tests in an isolated environment result on gst
trying to build the registry again, and fork for it. This results
in a g_spawn call, and who knows why, in this debug line written to
stdout:

posix_spawn avoided (fd close requested)

This is a g_debug() call from glib which should not end up on screen
with our verbosity settings, so I'll asume someone else is playing
smart and replacing the default log handler with something that
introduces garbage on our stdout.

This notably causes JSON output in video tests to be not quite JSON,
causing test failures.
parent 8d2d2dfd
Pipeline #65987 passed with stage
in 1 minute and 6 seconds
......@@ -41,6 +41,8 @@ def get_tracker_extract_jsonld_output(filename, mime_type=None):
# We depend on parsing the output, so verbosity MUST be 0.
env = os.environ.copy()
env['TRACKER_VERBOSITY'] = '0'
# Tell GStreamer not to fork to create the registry
env['GST_REGISTRY_FORK'] = 'no'
log ('Running: %s' % ' '.join(command))
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment