From fbee6c8b230e7c2fb8f0a9ab7a0cc27ad1176fdf Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 13 Oct 2021 00:06:34 -0300 Subject: [PATCH] validate:launcher: Avoid spamming terminal when inspecting unit tests And redirect GStreamer logs when necessary Part-of: --- subprojects/gst-devtools/validate/launcher/apps/gstcheck.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-devtools/validate/launcher/apps/gstcheck.py b/subprojects/gst-devtools/validate/launcher/apps/gstcheck.py index 61441fcc35..2fb1f2cfd3 100644 --- a/subprojects/gst-devtools/validate/launcher/apps/gstcheck.py +++ b/subprojects/gst-devtools/validate/launcher/apps/gstcheck.py @@ -26,6 +26,7 @@ import platform import shutil import subprocess import threading +from pathlib import Path import concurrent.futures as conc @@ -267,7 +268,9 @@ class MesonTestsManager(TestsManager): if binary != sys.argv[0]: return sublauncher_tests + os.environ["GST_DEBUG_FILE"] = str(Path(self.options.logsdir) / f"{test['name']}.discover.gstlog") res, _, tests_launcher = setup_launcher_from_args(cmd[1:], main_options=self.options) + del os.environ["GST_DEBUG_FILE"] if res is False: return sublauncher_tests