mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
validate:launcher: Handle optional tests
For example RTSP tests might not be avalaible if gst-rtsp-server-example-uri is not avalaible
This commit is contained in:
parent
0beb8647ce
commit
0e163ffae8
1 changed files with 12 additions and 5 deletions
|
@ -1544,19 +1544,26 @@ class _TestsLauncher(Loggable):
|
||||||
except IOError:
|
except IOError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
optional_out = []
|
||||||
for test in know_tests:
|
for test in know_tests:
|
||||||
if test and test.strip('~') not in tests_names:
|
if test and test.strip('~') not in tests_names:
|
||||||
if not test.startswith('~'):
|
if not test.startswith('~'):
|
||||||
testlist_changed = True
|
testlist_changed = True
|
||||||
printc("Test %s Not in testsuite %s anymore"
|
printc("Test %s Not in testsuite %s anymore"
|
||||||
% (test, testsuite.__file__), Colors.FAIL)
|
% (test, testsuite.__file__), Colors.FAIL)
|
||||||
|
else:
|
||||||
|
optional_out.append((test, None))
|
||||||
|
|
||||||
for test in tests:
|
tests_names = sorted([(test.classname, test) for test in tests] + optional_out,
|
||||||
testlist_file.write("%s%s\n" % ('~' if test.optional else '',
|
key=lambda x: x[0].strip('~'))
|
||||||
test.classname))
|
|
||||||
if test and test not in know_tests:
|
for tname, test in tests_names:
|
||||||
|
if test and test.optional:
|
||||||
|
tname = '~' + tname
|
||||||
|
testlist_file.write("%s\n" % (tname))
|
||||||
|
if tname and tname not in know_tests:
|
||||||
printc("Test %s is NEW in testsuite %s"
|
printc("Test %s is NEW in testsuite %s"
|
||||||
% (test, testsuite.__file__), Colors.OKGREEN)
|
% (tname, testsuite.__file__), Colors.OKGREEN)
|
||||||
testlist_changed = True
|
testlist_changed = True
|
||||||
|
|
||||||
testlist_file.close()
|
testlist_file.close()
|
||||||
|
|
Loading…
Reference in a new issue