validate:launcher:check: Make sure to register tests from the testsuite

Instead of having them listed from the app manager. This is needed
to avoid backtrace as tests now have to be register when setting up
the testsuite.
This commit is contained in:
Thibault Saunier 2017-07-19 11:49:09 -04:00
parent 1a28e7b043
commit 8ab723b153
2 changed files with 2 additions and 1 deletions

View file

@ -261,7 +261,7 @@ class GstCheckTestsManager(MesonTestsManager):
return child_env return child_env
def list_tests(self): def register_tests(self):
if self.tests: if self.tests:
return self.tests return self.tests

View file

@ -29,4 +29,5 @@ KNOWN_NOT_LEAKY = r'^check.gst-devtools.*|^check.gstreamer.*|^check-gst-plugins-
def setup_tests(test_manager, options): def setup_tests(test_manager, options):
if options.gst_check_leak_trace_testnames == 'known-not-leaky': if options.gst_check_leak_trace_testnames == 'known-not-leaky':
options.gst_check_leak_trace_testnames = KNOWN_NOT_LEAKY options.gst_check_leak_trace_testnames = KNOWN_NOT_LEAKY
test_manager.register_tests()
return True return True