gstreamer/subprojects/gst-devtools/validate/launcher
Alicia Boya García ba61160d6c validate-launcher: Fix race condition on repeated tests
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2900

The `reports` list was being copied as a reference, therefore, copies of
a test ended up inadvertedly sharing the same list of reports. Reports
added by one instance of the test would be reflected in all instances.

This caused a race condition where, if a test was run on repeat with
gst-validate-launcher -f, very often wrong log file was shown to the
user. For instance, gst-validate-launcher would say "test failed, see
log for iteration7", but iteration7 would contain "TEST PASSED".

Worse, the runner would add the report to that incorrect log file,
mixing problems between different executions of the tests.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5177>
2023-08-13 03:18:50 +00:00
..
apps validate: Place regex flags at the start of the regex 2022-12-28 10:04:41 +00:00
testsuites tests: Move srtp test known issue def to the 'check' testuite 2023-02-16 02:39:05 +00:00
__init__.py Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
baseclasses.py validate-launcher: Fix race condition on repeated tests 2023-08-13 03:18:50 +00:00
config.py.in Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
httpserver.py Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
loggable.py validate: loggable: fix Callable import 2022-01-11 16:39:56 +00:00
main.py validate: launcher: Add a argument to avoid rereuning flaky tests 2022-10-05 20:29:22 +00:00
meson.build meson: update for meson.build_root() and .build_source() deprecation 2021-10-20 11:20:44 +00:00
RangeHTTPServer.py Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00
reporters.py validate:launcher: Fix adding logs to xunit 2021-10-12 16:59:16 +00:00
utils.py validate:launcher: Reindent utils.py 2021-10-14 12:59:29 +00:00
vfb_server.py Move files from gst-devtools into the "subprojects/gst-devtools/" subdir 2021-09-24 16:15:38 -03:00