mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-16 04:15:51 +00:00
validate: Pipe debug output to a file when discovering scenarios
Otherwise `gst-validate-launcher` can get veeery noisy Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/198>
This commit is contained in:
parent
fc7faf6a03
commit
1ae290ec42
1 changed files with 7 additions and 6 deletions
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import tempfile
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
import subprocess
|
import subprocess
|
||||||
from launcher import utils
|
from launcher import utils
|
||||||
|
@ -263,12 +264,12 @@ class GESTestsManager(TestsManager):
|
||||||
|
|
||||||
def init(self):
|
def init(self):
|
||||||
try:
|
try:
|
||||||
if "--set-scenario=" in subprocess.check_output([GES_LAUNCH_COMMAND, "--help"]).decode():
|
with tempfile.NamedTemporaryFile() as f:
|
||||||
|
if "--set-scenario=" in subprocess.check_output([GES_LAUNCH_COMMAND, "--help"], stderr=f).decode():
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
self.warning("Can not use ges-launch, it seems not to be compiled against"
|
self.warning("Can not use ges-launch, it seems not to be compiled against"
|
||||||
" gst-validate")
|
" gst-validate")
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
self.warning("Can not use ges-launch: %s" % e)
|
self.warning("Can not use ges-launch: %s" % e)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
|
Loading…
Reference in a new issue