testutil: add AtomicCounter() as a threadsafe counter

The existing code in the reqs counting is not really thread safe,
this commit fixes that.
This commit is contained in:
Michael Vogt 2024-04-04 17:18:57 +02:00 committed by Ondřej Budai
parent b90a5027dc
commit b9b296a7e5
4 changed files with 39 additions and 8 deletions

View file

@ -28,7 +28,7 @@ setenv =
LINTABLES_EXCLUDES = "*.json,*.sh"
LINTABLES_EXCLUDES_RE = ".*\.json$,.*\.sh"
TYPEABLES = osbuild
TYPEABLES_STRICT = ./osbuild/main_cli.py ./osbuild/util/parsing.py
TYPEABLES_STRICT = ./osbuild/main_cli.py ./osbuild/util/parsing.py ./osbuild/testutil/atomic.py
passenv =
TEST_CATEGORY