mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
validate:launcher: Allow disabling using the number of failed tests as exitcode
This is usefull on CI servers where the test results will be inspected and the status of the build built from it.
This commit is contained in:
parent
bd0e8e410e
commit
e9862b9fda
1 changed files with 5 additions and 0 deletions
|
@ -494,6 +494,9 @@ Note that all testsuite should be inside python modules, so the directory should
|
|||
help="Number of tests to execute simultaneously"
|
||||
" (Defaults to number of cores of the processor)",
|
||||
type=int)
|
||||
dir_group.add_argument("--ignore-numfailures", dest="ignore_numfailures",
|
||||
help="Ignore the number of failed test in exit code",
|
||||
default=False, action='store_true')
|
||||
|
||||
http_server_group = parser.add_argument_group(
|
||||
"Handle the HTTP server to be created")
|
||||
|
@ -595,6 +598,8 @@ Note that all testsuite should be inside python modules, so the directory should
|
|||
pass
|
||||
finally:
|
||||
res = tests_launcher.final_report()
|
||||
if options.ignore_numfailures:
|
||||
res = 0
|
||||
tests_launcher.clean_tests()
|
||||
httpsrv.stop()
|
||||
vfb_server.stop()
|
||||
|
|
Loading…
Reference in a new issue