meson dist fails with validate/launcher_tests failing
2 Types of failures (first one most important):
1 - when building against a gstreamer installed into a prefix on the system:
The output from the failed tests:
8/8 validate/launcher_tests FAIL 0.48s (exit status 1)
--- command ---
14:59:31 GST_REGISTRY='/tmp/release-1.17.1/b/gst-devtools/meson-private/dist-build/validate/tests/launcher_tests/validate/launcher_tests.registry' GST_PLUGIN_PATH_1_0='/tmp/release-1.17.1/install-prefix/lib/x86_64-linux-gnu/gstreamer-1.0' GST_PLUGIN_SYSTEM_PATH_1_0='' /tmp/release-1.17.1/b/gst-devtools/meson-private/dist-build/validate/tools/gst-validate-launcher -o /tmp/release-1.17.1/b/gst-devtools/meson-private/dist-build/validate-launcher-output/ /tmp/release-1.17.1/b/gst-devtools/meson-private/dist-unpack/gst-devtools-1.17.1/validate/tests/launcher_tests/test_validate.py --validate-tools-path /tmp/release-1.17.1/b/gst-devtools/meson-private/dist-build/validate/tests/launcher_tests/../../tools
--- stdout ---
Setting up tests to test GstValidate
--- stderr ---
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Traceback (most recent call last):
File "/tmp/release-1.17.1/b/gst-devtools/meson-private/dist-build/validate/tools/gst-validate-launcher", line 79, in <module>
exit(main(libsdir))
File "/tmp/release-1.17.1/b/gst-devtools/meson-private/dist-unpack/gst-devtools-1.17.1/validate/launcher/main.py", line 634, in main
res, options, tests_launcher = setup_launcher_from_args(sys.argv[1:])
File "/tmp/release-1.17.1/b/gst-devtools/meson-private/dist-unpack/gst-devtools-1.17.1/validate/launcher/main.py", line 620, in setup_launcher_from_args
if not tests_launcher.set_settings(options, []):
File "/tmp/release-1.17.1/b/gst-devtools/meson-private/dist-unpack/gst-devtools-1.17.1/validate/launcher/baseclasses.py", line 1866, in set_settings
if self.needs_http_server() or options.httponly is True:
File "/tmp/release-1.17.1/b/gst-devtools/meson-private/dist-unpack/gst-devtools-1.17.1/validate/launcher/baseclasses.py", line 2192, in needs_http_server
if tester.needs_http_server():
File "/tmp/release-1.17.1/b/gst-devtools/meson-private/dist-unpack/gst-devtools-1.17.1/validate/launcher/apps/gstvalidate.py", line 1186, in needs_http_server
for test in self.list_tests():
File "/tmp/release-1.17.1/b/gst-devtools/meson-private/dist-unpack/gst-devtools-1.17.1/validate/launcher/apps/gstvalidate.py", line 1050, in list_tests
scenarios = [self.scenarios_manager.get_scenario(scenario_name)
File "/tmp/release-1.17.1/b/gst-devtools/meson-private/dist-unpack/gst-devtools-1.17.1/validate/launcher/apps/gstvalidate.py", line 1050, in <listcomp>
scenarios = [self.scenarios_manager.get_scenario(scenario_name)
File "/tmp/release-1.17.1/b/gst-devtools/meson-private/dist-unpack/gst-devtools-1.17.1/validate/launcher/baseclasses.py", line 2374, in get_scenario
self.discover_scenarios()
File "/tmp/release-1.17.1/b/gst-devtools/meson-private/dist-unpack/gst-devtools-1.17.1/validate/launcher/baseclasses.py", line 2325, in discover_scenarios
f = open(scenario_defs)
FileNotFoundError: [Errno 2] No such file or directory: '/home/tpm/gst-validate/scenarios.def'
-------
2 - when doing dist
from inside a gst-build devenv environment (but just gst-validate
configured individually):
The output from the failed tests:
8/8 validate/launcher_tests FAIL 0.12s (exit status 1)
--- command ---
15:31:13 GST_PLUGIN_SYSTEM_PATH_1_0='' GST_REGISTRY='/home/tpm/Devel/gst-build/subprojects/gst-devtools/b/meson-private/dist-build/validate/tests/launcher_tests/validate/launcher_tests.registry' GST_PLUGIN_PATH_1_0='/tmp/gb/subprojects/gst-plugins-base/pkgconfig/..' /home/tpm/Devel/gst-build/subprojects/gst-devtools/b/meson-private/dist-build/validate/tools/gst-validate-launcher -o /home/tpm/Devel/gst-build/subprojects/gst-devtools/b/meson-private/dist-build/validate-launcher-output/ /home/tpm/Devel/gst-build/subprojects/gst-devtools/b/meson-private/dist-unpack/gst-devtools-1.17.0.1/validate/tests/launcher_tests/test_validate.py --validate-tools-path /home/tpm/Devel/gst-build/subprojects/gst-devtools/b/meson-private/dist-build/validate/tests/launcher_tests/../../tools
--- stdout ---
Running with development path
--- stderr ---
Traceback (most recent call last):
File "/home/tpm/Devel/gst-build/subprojects/gst-devtools/b/meson-private/dist-build/validate/tools/gst-validate-launcher", line 68, in <module>
from launcher.main import main
ModuleNotFoundError: No module named 'launcher.main'
-------